summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
authorWan Jiabing <wanjiabing@vivo.com>2021-04-14 14:17:26 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-05-10 19:25:12 +0200
commited26297d14b7fbfd3a5975987b4e73ef26b97fbb (patch)
treea832ac278b5b3799963dcccf12b405f835dfa47a /drivers/scsi/qla4xxx
parentscsi: arcmsr: Update driver version to v1.50.00.04-20210414 (diff)
downloadlinux-ed26297d14b7fbfd3a5975987b4e73ef26b97fbb.tar.xz
linux-ed26297d14b7fbfd3a5975987b4e73ef26b97fbb.zip
scsi: qla4xxx: Simplify conditional
Fix the following coccicheck warning: ./drivers/scsi/qla4xxx/ql4_83xx.c:475:23-25: WARNING !A || A && B is equivalent to !A || B Link: https://lore.kernel.org/r/20210414121726.12503-1-wanjiabing@vivo.com Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r--drivers/scsi/qla4xxx/ql4_83xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_83xx.c b/drivers/scsi/qla4xxx/ql4_83xx.c
index 5f56122f6664..db41d90a5b6e 100644
--- a/drivers/scsi/qla4xxx/ql4_83xx.c
+++ b/drivers/scsi/qla4xxx/ql4_83xx.c
@@ -472,8 +472,7 @@ int qla4_83xx_can_perform_reset(struct scsi_qla_host *ha)
} else if (device_map[i].device_type == ISCSI_CLASS) {
if (drv_active & (1 << device_map[i].func_num)) {
if (!iscsi_present ||
- (iscsi_present &&
- (iscsi_func_low > device_map[i].func_num)))
+ iscsi_func_low > device_map[i].func_num)
iscsi_func_low = device_map[i].func_num;
iscsi_present++;