Received: by 10.223.185.111 with SMTP id b44csp525036wrg; Fri, 9 Mar 2018 08:51:54 -0800 (PST) X-Google-Smtp-Source: AG47ELtToO/yyb0QfunkmR+hGiYlmp25fxdowxlO3YcMhLFZuDbPQQRTLoo7nJLMRIl4Ht9Z7wPS X-Received: by 10.99.105.70 with SMTP id e67mr24783749pgc.342.1520614314140; Fri, 09 Mar 2018 08:51:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520614314; cv=none; d=google.com; s=arc-20160816; b=uitn1PZBRPh0JyCy01Yq41qANzhy/wJ7GYvQNNN4escNCjxrhdqykxRxcozbkJP0Rt JQap0VsIPqET91v9bmCOBxXwz7/c2jhqFp6NI5elvIQAcr2+LJ4JSj1JsO4f3aNKsK+T WE/G6km82HMrH6WQ2bQRzY3nEM7x9lT+J++zdiKXIm/g/0auJN6pjdnpRpwDtrIe84gS POHVSEpQcJztmNuOTo9eTViL3S6UfaI91mruULjMbzxYyjN6d/IOUDasFM0ATzogvA6/ ZA39AfLNNPHhntQOOv7Lv2tAJsjfNkY/QND++qRq14D69Vy9yvF9wo2Cv5RfVRIp6eIr ey3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=2OQtrY20dENvy3EEvuJIh2jqBQezK7cApc0EzSH5Wck=; b=lXUlxzQCwnoUPGVlHPX5nCV5Pbb73mAx5OS0Zw4WT9GRc2RpWvNrh5KoXiuMvgheh+ B2i+AC61BFf986msTZYVVgdTAFP4RhimjEobUdmDpvWvQ0XMDDnuf9Vg0VrLLSwh1XDy g3YSfRtLl0FmOiMmX3x/3tJZk8qRmPpeQcGf/p4sjdmeQZ+s6P0u8/49AFrMmQDUgjef dAH3/Y/p/JpK7w+xVRsYNpf3h5PObQAqwo3EWQRU03L/dRzXlkVcgnK/q7TG4ePHs3N+ g+Nn8a7C/k1XK6M6GlwtBe8ta0nfQU7LW/eaiyk6alY+I3OBJujkQhp/TG8axgd7I9LQ 1Eeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si1129927plu.426.2018.03.09.08.51.39; Fri, 09 Mar 2018 08:51:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751301AbeCIQtL (ORCPT + 99 others); Fri, 9 Mar 2018 11:49:11 -0500 Received: from mout.web.de ([217.72.192.78]:53883 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159AbeCIQtJ (ORCPT ); Fri, 9 Mar 2018 11:49:09 -0500 Received: from [192.168.1.2] ([92.228.30.253]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LlWKh-1eLpfJ2z6l-00bOIN; Fri, 09 Mar 2018 17:49:06 +0100 Subject: [PATCH v2 16/17] mfd: twl6030-irq: Delete an error message for a failed memory allocation in twl6030_init_irq() From: SF Markus Elfring To: Lee Jones , Tony Lindgren , linux-omap@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, LKML References: Message-ID: <575d5e65-381d-c12c-8d75-eadae7a92566@users.sourceforge.net> Date: Fri, 9 Mar 2018 17:49:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:jcvPPrgh8aSLHS54hnIo1doU7FWD90xfJhpFOcd+quQ7exYoMZO N1VjKPz/TPBX30r8RVG4L+eXV5GSBvOhC4oFtOXDPP91mNc7TLDqa+xD7V9TNrxi+pGpRm7 iEi5yO5Q8JENvnRgWDk5ahkE7+O8A6Ti2aBxiWJo33TMAH9S6SiRgPgYV5VwCmtiTMWTpQL hD6GPOG5Ztld5UlIgbmZg== X-UI-Out-Filterresults: notjunk:1;V01:K0:sccQOTD9O9A=:W0Tgx3pR/i3IsdIx1CWjzX zLHN0Sx3P09nCAKTbNQ6QbsPPMG0H8rJUo9Kj9c5DxK2A/EqyZ+vMjXmEM5veFl/1vZk39Sll q6QTROiSn2f8n0fD1zBRZ6v28Y4hmR82czL68oMqFkQKiVuYUzs6ozzck+zbFuXjkHgKkiTYW TB3Tj9BAJ3pgOpeKFPHf2s2JZG8qRGs6bkbk/C29lWhuvui3m7DwgM42dWa4ruoeOPoxZkrT6 cnN+6G+YoqDYXbEcuAcHXNMS8mJRzG2Tjy89/T8BebCWFK3Idm+vqnVqQhUWFveOV7bKISLRL 8GtKhSD9aU/nNA0KaZT6eKXKRzleNMJlc/gsu8TqQxd8uje4SdnuOG7j0uKmi9Gpa0TAtLAf2 wsaTmTwBU2nQkHpIe6aT5ksz1oq9TtOvZzoAfkWTChQm++MTIO68oeehIC/d5I99L8w2DhlqW UrzEcIMZ3atzHIDscS4TB2lXn6FXiR7KPT479DBw9mdkCQVWoEHSccj415Zk4wKgAJO1z5ig8 8bGGrAuZ3utn2u6KGhS+xdS9/Xh2uymyVeN6wD9W7Qs3ZCgDaC+W2K7l8fQsrsXfU0xfYBgaw IU/W0MgzG4aCQnlYbB8N4NsWiMOp0IIVRg5paDr9bSXBRc+34xR972AbjYsXy6g/YJEWVlQJa 3VdWNMrMEUCx1B9EN3JpRCf855usc/u/1UAYSceXAzAzM+DyimmSfozziLdbS27Nrh1sUM5mJ fOawbpRgk9NB/5524dre76ORna1BR75C0aODM98jYEkiXR53myWcQXCg/rl1CCx3Z6CWsLSjZ Vwi4RVFZk/ZAPCn/lAgWWHdJGTVOM+fRMHDa4oHZhlvCUhfJ3c= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Fri, 9 Mar 2018 09:49:32 +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 --- v2: Lee Jones requested a resend for this patch. The change was rebased on source files from Linux next-20180308. 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.16.2