Skip to content

Commit eea6caf

Browse files
Jiasheng Jiangmartinkpetersen
authored andcommitted
scsi: lpfc: Remove redundant assignment to avoid memory leak
Remove the redundant assignment if kzalloc() succeeds to avoid memory leak. Fixes: bd2cdd5 ("scsi: lpfc: NVME Initiator: Add debugfs support") Signed-off-by: Jiasheng Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Justin Tee <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a599761 commit eea6caf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/scsi/lpfc/lpfc_debugfs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6289,7 +6289,6 @@ lpfc_debugfs_initialize(struct lpfc_vport *vport)
62896289
}
62906290
phba->nvmeio_trc_on = 1;
62916291
phba->nvmeio_trc_output_idx = 0;
6292-
phba->nvmeio_trc = NULL;
62936292
} else {
62946293
nvmeio_off:
62956294
phba->nvmeio_trc_size = 0;

0 commit comments

Comments
 (0)