scsi: megaraid_sas: Remove unnecessary kfree()
authorGuixin Liu <kanie@linux.alibaba.com>
Tue, 2 Aug 2022 07:19:00 +0000 (15:19 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 12 Aug 2022 02:13:18 +0000 (22:13 -0400)
commit7dd6f4af9482c319fa829583799e63e38967177d
tree6f8566cda1e493b195b62c6a2e1f25d22bfdcf03
parent8c499e49240bd93628368c3588975cfb94169b8b
scsi: megaraid_sas: Remove unnecessary kfree()

When alloc ctrl mem fails, the reply_map will subsequently be freed in
megasas_free_ctrl_mem(). No need to free it in megasas_alloc_ctrl_mem().

Link: https://lore.kernel.org/r/1659424740-46918-1-git-send-email-kanie@linux.alibaba.com
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_base.c