]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: proc: remove unreached code and fix build warning
authorAmer Al Shanawany <amer.shanawany@gmail.com>
Mon, 3 Jun 2024 12:42:20 +0000 (14:42 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 29 Jun 2024 02:36:27 +0000 (19:36 -0700)
commit2d87af0666d0b5838e3e3e6430c6498df8bf6ad5
treeaae7e6b662a44173c59dc270da9bc00c0e61de2b
parent6f3283df275b19bdea8158a2e2d8ad181995022b
selftests: proc: remove unreached code and fix build warning

fix the following warning:
proc-empty-vm.c:385:17: warning: ignoring return value of `write'
 declared with attribute `warn_unused_result' [-Wunused-result]
  385 |                 write(1, buf, rv);
      |                 ^~~~~~~~~~~~~~~~~

Link: https://lkml.kernel.org/r/20240603124220.33778-1-amer.shanawany@gmail.com
Signed-off-by: Amer Al Shanawany <amer.shanawany@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202404010211.ygidvMwa-lkp@intel.com/
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Swarup Laxman Kotiaklapudi <swarupkotikalapudi@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/proc/proc-empty-vm.c