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>
This commit is contained in:
Wan Jiabing 2021-04-14 20:17:26 +08:00 коммит произвёл Martin K. Petersen
Родитель fbdfd51639
Коммит ed26297d14
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -472,8 +472,7 @@ int qla4_83xx_can_perform_reset(struct scsi_qla_host *ha)
} else if (device_map[i].device_type == ISCSI_CLASS) { } else if (device_map[i].device_type == ISCSI_CLASS) {
if (drv_active & (1 << device_map[i].func_num)) { if (drv_active & (1 << device_map[i].func_num)) {
if (!iscsi_present || 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_func_low = device_map[i].func_num;
iscsi_present++; iscsi_present++;