Skip to content

Commit 3c22806

Browse files
Justin Teemartinkpetersen
authored andcommitted
scsi: lpfc: Remove redundant NULL ptr assignment in lpfc_els_free_iocb()
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>
1 parent f7a302e commit 3c22806

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/scsi/lpfc/lpfc_els.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5159,14 +5159,12 @@ lpfc_els_free_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *elsiocb)
51595159
} else {
51605160
buf_ptr1 = elsiocb->cmd_dmabuf;
51615161
lpfc_els_free_data(phba, buf_ptr1);
5162-
elsiocb->cmd_dmabuf = NULL;
51635162
}
51645163
}
51655164

51665165
if (elsiocb->bpl_dmabuf) {
51675166
buf_ptr = elsiocb->bpl_dmabuf;
51685167
lpfc_els_free_bpl(phba, buf_ptr);
5169-
elsiocb->bpl_dmabuf = NULL;
51705168
}
51715169
lpfc_sli_release_iocbq(phba, elsiocb);
51725170
return 0;

0 commit comments

Comments
 (0)