[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1535511800-25075-1-git-send-email-dingxiang@cmss.chinamobile.com>
Date: Wed, 29 Aug 2018 11:03:20 +0800
From: Ding Xiang <dingxiang@...s.chinamobile.com>
To: jejb@...ux.vnet.ibm.com, martin.petersen@...cle.com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] scsi: csiostor: Fix bool function return value
csio_scsi_itnexus_loss_error is bool type, so the return value
should be true or false.
Signed-off-by: Ding Xiang <dingxiang@...s.chinamobile.com>
---
drivers/scsi/csiostor/csio_scsi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
}
/*
--
1.9.1
Powered by blists - more mailing lists