Skip to contentSkip to conversation

scsi: lpfc: remove redundant assignment to pointer temp_hdr

PATCH Applied Colin King 3 participants 4 messages Apr 20, 2021 – May 11, 2021

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

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
index 06ccc0157bd8..9ead564dd0c0 100644
@@ -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
#2 lore raw
In reply to Colin King

Colin,

Quoted 2 lines

The pointer tmp_hdr is 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