aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptctl.c
diff options
context:
space:
mode:
authorLi Heng <[email protected]>2020-07-29 09:19:14 +0000
committerMartin K. Petersen <[email protected]>2020-08-21 03:15:19 +0000
commit33fff97cbdc1246d59f64614e0081e393c484d02 (patch)
tree5a8b2b1b510a52488292cb6ce16ba38f75541d3f /drivers/message/fusion/mptctl.c
parentscsi: ufs: ufs-mediatek: Modify the minimum RX/TX lane count to 2 (diff)
downloadkernel-33fff97cbdc1246d59f64614e0081e393c484d02.tar.gz
kernel-33fff97cbdc1246d59f64614e0081e393c484d02.zip
scsi: mptfc: Remove unneeded cast from memory allocation
Remove casting the values returned by memory allocation function. Coccinelle emits WARNING: ./drivers/message/fusion/mptfc.c:766:17-30: WARNING: casting value returned by memory allocation function to (FCPortPage0_t *) is useless. ./drivers/message/fusion/mptfc.c:907:17-30: WARNING: casting value returned by memory allocation function to (FCPortPage1_t *) is useless. [mkp: memset()] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Li Heng <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
0 files changed, 0 insertions, 0 deletions