diff options
author | James Smart <[email protected]> | 2017-03-04 09:30:21 -0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2017-03-06 23:04:22 -0500 |
commit | 70e5afd57d6d97d69bf5fd0187c2bb5a79990504 (patch) | |
tree | 45469ee0e7d35e63ec60312aa45152e1e52efd3c | |
parent | 33cc559a81397bc813c392617d40ddfdfa3cffbd (diff) |
scsi: lpfc: remove redundant assignment of sgel
From: Colin Ian King <[email protected]>
In the NVMET_FCOP_RSP case, sgel is assigned but never used and
hence is redundant and can be removed.
Detected by CoverityScan, CID#1411658 ("Unused value")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r-- | drivers/scsi/lpfc/lpfc_nvmet.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c index c421e1738ee9..e59a0a89d357 100644 --- a/drivers/scsi/lpfc/lpfc_nvmet.c +++ b/drivers/scsi/lpfc/lpfc_nvmet.c @@ -1445,7 +1445,6 @@ lpfc_nvmet_prep_fcp_wqe(struct lpfc_hba *phba, case NVMET_FCOP_RSP: /* Words 0 - 2 */ - sgel = &rsp->sg[0]; physaddr = rsp->rspdma; wqe->fcp_trsp.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; wqe->fcp_trsp.bde.tus.f.bdeSize = rsp->rsplen; |