]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mptctl: Remove unneeded cast from memory allocation
authorLi Heng <liheng40@huawei.com>
Wed, 29 Jul 2020 09:19:50 +0000 (17:19 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 Aug 2020 03:17:35 +0000 (23:17 -0400)
commitb3250fcb42b26f7399d3cb16f255e380bf310e79
treec57ccc26b3e9d1d12056b763fa5e294b0d83ab63
parent2e9ad9a4654638b1ad4fe72b3c601c6a82cbe95d
scsi: mptctl: Remove unneeded cast from memory allocation

Remove casting the values returned by memory allocation function.

Coccinelle emits WARNING:

./drivers/message/fusion/mptctl.c:2596:14-31: WARNING: casting value returned by memory allocation function to (SCSIDevicePage0_t *) is useless.
./drivers/message/fusion/mptctl.c:2660:15-32: WARNING: casting value returned by memory allocation function to (SCSIDevicePage3_t *) is useless.

Link: https://lore.kernel.org/r/1596014390-18605-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/mptctl.c