Skip to content

Commit 99de0ea

Browse files
Jiapeng Zhongmartinkpetersen
authored andcommitted
scsi: qla2xxx: Simplify the calculation of variables
Fix the following coccicheck warnings: ./drivers/scsi/qla2xxx/qla_nvme.c:288:24-26: WARNING !A || A && B is equivalent to !A || B. Link: https://lore.kernel.org/r/[email protected] Reported-by: Abaci Robot <[email protected]> Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Jiapeng Zhong <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a927ec3 commit 99de0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/qla_nvme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static int qla_nvme_ls_req(struct nvme_fc_local_port *lport,
291291
struct qla_hw_data *ha;
292292
srb_t *sp;
293293

294-
if (!fcport || (fcport && fcport->deleted))
294+
if (!fcport || fcport->deleted)
295295
return rval;
296296

297297
vha = fcport->vha;

0 commit comments

Comments
 (0)