scsi: lpfc: Remove redundant assignment to pointer temp_hdr
authorColin Ian King <colin.king@canonical.com>
Tue, 20 Apr 2021 10:41:23 +0000 (11:41 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 10 May 2021 17:24:06 +0000 (13:24 -0400)
The pointer tmp_hdr is being assigned a value that is never read, the
assignment is redundant and can be removed.

Link: https://lore.kernel.org/r/20210420104123.376420-1-colin.king@canonical.com
Addresses-Coverity: ("Unused value")
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c

index 573c859..a1ed6b1 100644 (file)
@@ -17943,7 +17943,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;
        }