Re: [PATCH -next] scsi: Remove unneeded cast from memory allocation

2020-09-08 Thread Martin K. Petersen
On Wed, 29 Jul 2020 17:19:50 +0800, Li Heng wrote: > 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

[PATCH -next] scsi: Remove unneeded cast from memory allocation

2020-07-29 Thread Li Heng
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:

[PATCH -next] scsi: Remove unneeded cast from memory allocation

2020-07-29 Thread Li Heng
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