From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Date: Fri, 16 Feb 2018 09:39:13 +0000 Subject: Re: [PATCH] sata_dwc_460ex: Delete an error message for a failed memory allocation in sata_dwc_port_ Message-Id: <1518773953.22495.366.camel@linux.intel.com> List-Id: References: <3ba388af-286a-df63-e78f-c82c1d084439@users.sourceforge.net> In-Reply-To: <3ba388af-286a-df63-e78f-c82c1d084439@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring , linux-ide@vger.kernel.org, Tejun Heo Cc: LKML , kernel-janitors@vger.kernel.org On Thu, 2018-02-15 at 22:22 +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 15 Feb 2018 22:15:25 +0100 > > Omit an extra message for a memory allocation failure in this > function. > > This issue was detected by using the Coccinelle software. Tejun, it's up to you. In case you are fine with the change, Acked-by: Andy Shevchenko > > Signed-off-by: Markus Elfring > --- > drivers/ata/sata_dwc_460ex.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/ata/sata_dwc_460ex.c > b/drivers/ata/sata_dwc_460ex.c > index 6af4ec3c88c3..ce3d6674ef80 100644 > --- a/drivers/ata/sata_dwc_460ex.c > +++ b/drivers/ata/sata_dwc_460ex.c > @@ -901,7 +901,6 @@ static int sata_dwc_port_start(struct ata_port > *ap) > /* Allocate Port Struct */ > hsdevp = kzalloc(sizeof(*hsdevp), GFP_KERNEL); > if (!hsdevp) { > - dev_err(ap->dev, "%s: kmalloc failed for hsdevp\n", > __func__); > err = -ENOMEM; > goto CLEANUP; > } -- Andy Shevchenko Intel Finland Oy