From patchwork Tue Jan 16 16:17:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10167587 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 20DAB600CA for ; Tue, 16 Jan 2018 16:18:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D46528543 for ; Tue, 16 Jan 2018 16:18:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01D5A28720; Tue, 16 Jan 2018 16:18:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F5162871D for ; Tue, 16 Jan 2018 16:18:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751098AbeAPQRy (ORCPT ); Tue, 16 Jan 2018 11:17:54 -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 Received: from [192.168.1.3] ([92.228.15.72]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LlFDW-1f9AFt1Cp4-00azbG; Tue, 16 Jan 2018 17:17:51 +0100 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-Language: en-GB 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;