Re: [PATCH] selftests: proc: remove unreached code and fix build warning
From: Alexey Dobriyan
Date: Mon Jun 03 2024 - 10:24:58 EST
On Mon, Jun 03, 2024 at 02:42:20PM +0200, Amer Al Shanawany wrote:
> fix the following warning:
> proc-empty-vm.c:385:17: warning: ignoring return value of ‘write’
> --- a/tools/testing/selftests/proc/proc-empty-vm.c
> +++ b/tools/testing/selftests/proc/proc-empty-vm.c
> @@ -381,9 +381,6 @@ static int test_proc_pid_statm(pid_t pid)
> - if (0) {
> - write(1, buf, rv);
> - }
no thanks