]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: bnx2fc: fix boolreturn.cocci warnings
authorkbuild test robot <lkp@intel.com>
Sat, 28 Mar 2020 11:07:28 +0000 (19:07 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 1 Apr 2020 02:35:02 +0000 (22:35 -0400)
commit60f537d5755221efdcdae1415a4c745164c31214
tree74e777d9f75560194ef02a0bbf05c231b6c97dff
parentcec9cbac5244b017f2671e3770abfacc939d753d
scsi: bnx2fc: fix boolreturn.cocci warnings

drivers/scsi/bnx2fc/bnx2fc_hwi.c:1019:9-10: WARNING: return of 0/1 in function 'bnx2fc_pending_work' 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

Fixes: 77331115e220 ("scsi: bnx2fc: Process the RQE with CQE in interrupt context")
CC: Javed Hasan <jhasan@marvell.com>
Acked-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_hwi.c