Commit 7dd6f4a
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>1 parent 8c499e4 commit 7dd6f4a
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7150 | 7150 | | |
7151 | 7151 | | |
7152 | 7152 | | |
7153 | | - | |
| 7153 | + | |
7154 | 7154 | | |
7155 | 7155 | | |
7156 | 7156 | | |
7157 | 7157 | | |
7158 | 7158 | | |
7159 | 7159 | | |
7160 | | - | |
| 7160 | + | |
7161 | 7161 | | |
7162 | 7162 | | |
7163 | 7163 | | |
7164 | 7164 | | |
7165 | | - | |
7166 | | - | |
7167 | | - | |
7168 | | - | |
7169 | 7165 | | |
7170 | 7166 | | |
7171 | 7167 | | |
| |||
0 commit comments