Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751405AbeAPQRz (ORCPT + 1 other); Tue, 16 Jan 2018 11:17:55 -0500 Received: from mout.web.de ([217.72.192.78]:59223 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750811AbeAPQRx (ORCPT ); Tue, 16 Jan 2018 11:17:53 -0500 To: linux-omap@vger.kernel.org, Lee Jones , Tony Lindgren Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] mfd/twl6030-irq: Delete an error message for a failed memory allocation in twl6030_init_irq() Message-ID: Date: Tue, 16 Jan 2018 17:17:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:1gAqzcGXpOprVM0ycJJWs+WK0aFVLF9D+Dahv8ey+8R/7fSdtaI aFbHfd/kDiZyz/KGrI86gxgBd7p6BNZ4BTF8WrEQ6V1indnEA7EXZpe+IEnJAEhvKvMx4My SgeHqXUvbF60jAWldxhBCTuj0nWlBADVH5P+ITj02utbOVsAkgBs8FCLdQVbrMq266KCq7M 4BZlBFqkOVEjdqg4s1WyQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:bi28s3Rjl70=:pBFOC5Ya19GFjYSNdSB4z4 wURwkhec/gJCQei+vbETsG69W+89CFtDySEj3JM+lowTjcwbO6xH4OCdaJqeH1sTH8zcoC7Nk aiCRqMvY8TBi+PQQ4aBHtVTov2foWyrzq8Tawrlr8XfU8L6xtp5e8fsAb7h836AT2jPZH0Yiq rUJBr2N5n1OvQmkQbmVOdw+qDM4V0xQTzZiWCccxtHEDmZWfQHJGa1shqmQyCGr8RUl5FAgRT ZyTp9L8jguSB98Ke7NxVap85MIGWrIZStMa1I1cwfHFxlCRVAbmvho3iFaq7polbP/zevHkVe TMO5kHzDyZT28JXBp/7KF7rsJbtHjlaPNX0SzTiOmLqRbMaVzGVO66icFwAo5dOnoOqrmIlg+ W2jagIEyRaqqhJ/h7yje0OdcWbn6EcnjsxAQYHVxyrugqEL8Uuq4AcPzNrozGH4yAOSB198Do 0O7Ye0MoSYmL50p2npFj5UDBeeNtiq8LuorzjlpYk2d0HllheHh4nom0ptakrL1/aR0XeghMk unOQtVfw7vbHEHVa0RjUv6Y/xtDNqkrvhUBjNqLifoJ5xm5/V/zA33RUtLWXJHskWgnIAl/80 /shSkpz3iZCw7vFpalLeGjNS8vtXc0E8F/tD/tlDxj7/syqQ8tbITs2tqlNBd8IdO2z90gBRE 4D+0160t7EYTywCgrg6aai3lntIrQldMiLELHB4oICmxN/sueVECVAHVQrKd67/dGCOvwGVlp DhmAbuGO0lYryM/+RMoIXxg8QsbpTMmrjb61COpWmAHyJ8glzteAM7QVN7bdvqu6mfYcCc8oH i9irDITrsz4bV1Lfhs/bXTsXEDkZlJGTuC4yIOrMgP7emDll4I= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Tue, 16 Jan 2018 17:06:51 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/mfd/twl6030-irq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/twl6030-irq.c b/drivers/mfd/twl6030-irq.c index e3ec8dfa9f1e..e939431ed10c 100644 --- a/drivers/mfd/twl6030-irq.c +++ b/drivers/mfd/twl6030-irq.c @@ -392,10 +392,8 @@ int twl6030_init_irq(struct device *dev, int irq_num) nr_irqs = TWL6030_NR_IRQS; twl6030_irq = devm_kzalloc(dev, sizeof(*twl6030_irq), GFP_KERNEL); - if (!twl6030_irq) { - dev_err(dev, "twl6030_irq: Memory allocation failed\n"); + if (!twl6030_irq) return -ENOMEM; - } mask[0] = 0xFF; mask[1] = 0xFF; -- 2.15.1