diff mbox series

scsi: csiostor: Fix bool function return value

Message ID 1535511800-25075-1-git-send-email-dingxiang@cmss.chinamobile.com (mailing list archive)
State Deferred
Headers show
Series scsi: csiostor: Fix bool function return value | expand

Commit Message

Ding Xiang Aug. 29, 2018, 3:03 a.m. UTC
csio_scsi_itnexus_loss_error is bool type, so the return value
should be true or false.

Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
---
 drivers/scsi/csiostor/csio_scsi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/csiostor/csio_scsi.c b/drivers/scsi/csiostor/csio_scsi.c
index dab0d3f..aae7abc 100644
--- a/drivers/scsi/csiostor/csio_scsi.c
+++ b/drivers/scsi/csiostor/csio_scsi.c
@@ -147,9 +147,9 @@  static int csio_do_abrt_cls(struct csio_hw *,
 	case FW_ERR_RDEV_LOST:
 	case FW_ERR_RDEV_LOGO:
 	case FW_ERR_RDEV_IMPL_LOGO:
-		return 1;
+		return true;
 	}
-	return 0;
+	return false;
 }
 
 /*