[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 8 Sep 2020 22:17:30 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: sathya.prakash@...adcom.com, suganath-prabu.subramani@...adcom.com,
Li Heng <liheng40@...wei.com>, sreekanth.reddy@...adcom.com
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
MPT-FusionLinux.pdl@...adcom.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] scsi: Remove unneeded cast from memory allocation
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 useless.
> ./drivers/message/fusion/mptctl.c:2660:15-32: WARNING: casting value returned by memory allocation function to (SCSIDevicePage3_t *) is useless.
Applied to 5.10/scsi-queue, thanks!
[1/1] scsi: mptctl: Remove unneeded cast from memory allocation
https://git.kernel.org/mkp/scsi/c/8fee79ed8ea2
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists