scsi: qla2xxx: Simplify the calculation of variables
Subsystems (2)
PATCH 1/1 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.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Zhong <[email protected]>
--- drivers/scsi/qla2xxx/qla_nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_nvme.c +1 -1
@@ -285,7 +285,7 @@ static int qla_nvme_ls_req(struct nvme_fc_local_port *lport,srb_t *sp; -if (!fcport || (fcport && fcport->deleted)) +if (!fcport || fcport->deleted)return rval; vha = fcport->vha;
Signature · 1 line
1.8.3.1
Quoted 31 lines · Jiapeng Zhong
Fix the following coccicheck warnings:
./drivers/scsi/qla2xxx/qla_nvme.c:288:24-26: WARNING !A || A && B is equivalent to !A || B.
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Zhong <[email protected]>---
drivers/scsi/qla2xxx/qla_nvme.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/qla2xxx/qla_nvme.c +1
-1@@ -285,7 +285,7 @@ static int qla_nvme_ls_req(struct nvme_fc_local_port *lport,srb_t *sp; -if (!fcport || (fcport && fcport->deleted)) +if (!fcport || fcport->deleted)return rval; vha = fcport->vha;Signature · 1 line
1.8.3.1
Reviewed-by Himanshu Madhani <[email protected]>
--
Himanshu Madhani Oracle Linux Engineering
Martin K. Petersen
AppliedJiapeng,
Quoted 4 lines
Fix the following coccicheck warnings:
./drivers/scsi/qla2xxx/qla_nvme.c:288:24-26: WARNING !A || A && B is equivalent to !A || B.
Applied to 5.12/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering