[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1wphak7d7.fsf@sermon.lab.mkp.net>
Date: Fri, 14 Oct 2016 16:23:16 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Javier Martinez Canillas <javier@....samsung.com>
Cc: linux-kernel@...r.kernel.org, iss_storagedev@...com,
linux-scsi@...r.kernel.org,
"James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
esc.storagedev@...rosemi.com, Don Brace <don.brace@...rosemi.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
Subject: Re: [PATCH] scsi: hpsa: remove unneeded void pointer cast
>>>>> "Javier" == Javier Martinez Canillas <javier@....samsung.com> 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
Powered by blists - more mailing lists