scsi: lpfc: remove redundant assignment to pointer temp_hdr
Subsystems (3)
PATCH 1/1 scsi: lpfc: remove redundant assignment to pointer temp_hdr
From: Colin Ian King <[email protected]>
The pointer tmp_hdr is being assigned a value that is never read, the assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
--- drivers/scsi/lpfc/lpfc_sli.c | 1 - 1 file changed, 1 deletion(-)
drivers/scsi/lpfc/lpfc_sli.c +0 -1
@@ -17936,7 +17936,6 @@ lpfc_fc_frame_add(struct lpfc_vport *vport, struct hbq_dmabuf *dmabuf) seq_dmabuf->time_stamp = jiffies;lpfc_update_rcv_time_stamp (vport);if (list_empty (&seq_dmabuf->dbuf.list)) { - temp_hdr = dmabuf->hbuf.virt;list_add_tail (&dmabuf->dbuf.list, &seq_dmabuf->dbuf.list);return seq_dmabuf; }
Signature · 1 line
2.30.2
Quoted 8 lines · Colin King
From: Colin Ian King <[email protected]>
The pointer
tmp_hdris being assigned a value that is never read, the assignment is redundant and can be removed.Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>---
Thanks
-- james
Martin K. Petersen
AppliedColin,
Quoted 2 lines
The pointer
tmp_hdris being assigned a value that is never read, the assignment is redundant and can be removed.
Applied to 5.14/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 2 lines · Colin King
The pointer
tmp_hdris being assigned a value that is never read, the assignment is redundant and can be removed.
Applied to 5.14/scsi-queue, thanks!
[1/1] scsi: lpfc: remove redundant assignment to pointer temp_hdr
https://git.kernel.org/mkp/scsi/c/52b259908114
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering