Re: [PATCH] scsi: hpsa: remove unneeded void pointer cast

2016-10-14 Thread Martin K. Petersen
> "Javier" == Javier Martinez Canillas writes: Javier> It's not necessary to cast the result of kmalloc, since void Javier> pointers are promoted to any other type. This also fixes Javier> following coccinelle warning: Javier> casting value returned by memory

Re: [PATCH] scsi: hpsa: remove unneeded void pointer cast

2016-10-13 Thread Don Brace
On 10/13/2016 11:10 AM, Javier Martinez Canillas wrote: It's not necessary to cast the result of kmalloc, since void pointers are promoted to any other type. This also fixes following coccinelle warning: casting value returned by memory allocation function to (BIG_IOCTL_Command_struct *) is

[PATCH] scsi: hpsa: remove unneeded void pointer cast

2016-10-13 Thread Javier Martinez Canillas
It's not necessary to cast the result of kmalloc, since void pointers are promoted to any other type. This also fixes following coccinelle warning: casting value returned by memory allocation function to (BIG_IOCTL_Command_struct *) is useless. Signed-off-by: Javier Martinez Canillas