]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: lpfc: Remove redundant NULL ptr assignment in lpfc_els_free_iocb()
authorJustin Tee <justin.tee@broadcom.com>
Thu, 6 Nov 2025 22:46:32 +0000 (14:46 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 8 Nov 2025 18:18:00 +0000 (13:18 -0500)
Remove redundant cmd_dmabuf and bpl_dmabuf NULL ptr assignment as they
are already initialized to NULL when handling a new unsolicited event.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20251106224639.139176-4-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c

index 5456d2ab2d367383cac421447068f76209abaa02..b4aba68afb6621d5ffc61f5e0f5c24016eda4abe 100644 (file)
@@ -5159,14 +5159,12 @@ lpfc_els_free_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *elsiocb)
                } else {
                        buf_ptr1 = elsiocb->cmd_dmabuf;
                        lpfc_els_free_data(phba, buf_ptr1);
-                       elsiocb->cmd_dmabuf = NULL;
                }
        }
 
        if (elsiocb->bpl_dmabuf) {
                buf_ptr = elsiocb->bpl_dmabuf;
                lpfc_els_free_bpl(phba, buf_ptr);
-               elsiocb->bpl_dmabuf = NULL;
        }
        lpfc_sli_release_iocbq(phba, elsiocb);
        return 0;