scsi: csiostor: Use true and false for boolean values
PATCH 1/1 scsi: csiostor: Use true and false for boolean values
Return statements in functions returning bool should use true or false instead of an integer value.
This code was detected with the help of Coccinelle.
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/scsi/csiostor/csio_scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/csiostor/csio_scsi.c +2 -2
@@ -147,9 +147,9 @@ csio_scsi_itnexus_loss_error(uint16_t error)case FW_ERR_RDEV_LOST :case FW_ERR_RDEV_LOGO :case FW_ERR_RDEV_IMPL_LOGO : -return 1 ; +return true; } -return 0 ; +return false; }/*
Signature · 1 line
2.7.4