Remove redundant ternary operators to clean up the code.
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
---
drivers/scsi/csiostor/csio_scsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/csiostor/csio_scsi.c b/drivers/scsi/csiostor/csio_scsi.c
index 34bde6650fae..a95a7ccdb3a9 100644
--- a/drivers/scsi/csiostor/csio_scsi.c
+++ b/drivers/scsi/csiostor/csio_scsi.c
@@ -1407,7 +1407,7 @@ csio_disable_port(struct device *dev,
bool disable;
if (*buf == '1' || *buf == '0')
- disable = (*buf == '1') ? true : false;
+ disable = *buf == '1';
else
return -EINVAL;
--
2.34.1