scsi: mptfc: Remove unneeded cast from memory allocation
authorLi Heng <liheng40@huawei.com>
Wed, 29 Jul 2020 09:19:14 +0000 (17:19 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 Aug 2020 03:15:19 +0000 (23:15 -0400)
commit33fff97cbdc1246d59f64614e0081e393c484d02
tree5a8b2b1b510a52488292cb6ce16ba38f75541d3f
parent460d74a0911c562f56148519a2467271271a73aa
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/1596014354-59935-1-git-send-email-liheng40@huawei.com
Signed-off-by: Li Heng <liheng40@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/message/fusion/mptfc.c