scsi: target: tcmu: Fix boolreturn.cocci warnings
authorkernel test robot <lkp@intel.com>
Sat, 15 May 2021 23:03:58 +0000 (07:03 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 May 2021 21:14:21 +0000 (17:14 -0400)
commit824731258b65f58764786f8d776c2007b084e12c
tree3746188d772a75a538f182355012740e8f6ba3d8
parente2ac7ab281c06cd367f6bffc4ba445a311a5f52a
scsi: target: tcmu: Fix boolreturn.cocci warnings

drivers/target/target_core_user.c:1424:9-10: WARNING: return of 0/1 in function 'tcmu_handle_completions' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.

Generated by: scripts/coccinelle/misc/boolreturn.cocci

Link: https://lore.kernel.org/r/20210515230358.GA97544@60d1edce16e0
Fixes: 9814b55cde05 ("scsi: target: tcmu: Return from tcmu_handle_completions() if cmd_id not found")
CC: Bodo Stroesser <bostroesser@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c