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/1611650554-33019-1-git-send-email-abaci-bugfix@linux.alibaba.com Reported-by: Abaci Robot <abaci@linux.alibaba.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent a927ec3 commit 99de0ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)