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

From: Martin K. Petersen
Date: Fri Oct 14 2016 - 16:26:49 EST


>>>>> "Javier" == Javier Martinez Canillas <javier@xxxxxxxxxxxxxxx> 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 allocation function to
Javier> (BIG_IOCTL_Command_struct *) is useless.

Applied to 4.10/scsi-queue.

--
Martin K. Petersen Oracle Linux Engineering