From patchwork Wed Jan 24 20:30:09 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: 10183063 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 0D00060353 for ; Wed, 24 Jan 2018 20:30:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF83528756 for ; Wed, 24 Jan 2018 20:30:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3DC328958; Wed, 24 Jan 2018 20:30:28 +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 78F8828756 for ; Wed, 24 Jan 2018 20:30:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932447AbeAXUaO (ORCPT ); Wed, 24 Jan 2018 15:30:14 -0500 Received: from mout.web.de ([212.227.15.14]:54808 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932072AbeAXUaN (ORCPT ); Wed, 24 Jan 2018 15:30:13 -0500 Received: from [192.168.1.2] ([77.181.242.198]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MCZfe-1eWAE43nlK-009RhX; Wed, 24 Jan 2018 21:30:11 +0100 Subject: [PATCH 1/3] Input: bcm5974: Delete an error message for a failed memory allocation in bcm5974_wellspring_mode() From: SF Markus Elfring To: linux-input@vger.kernel.org, Dmitry Torokhov , Henrik Rydberg Cc: LKML , kernel-janitors@vger.kernel.org References: <0505482c-287f-8809-76e3-960cf45b3c0a@users.sourceforge.net> Message-ID: <9371a1f7-beee-212d-05d7-ba081a6990c1@users.sourceforge.net> Date: Wed, 24 Jan 2018 21:30:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <0505482c-287f-8809-76e3-960cf45b3c0a@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:cmMfkDbsSkLVzg87Bt2csew6VkWk0naVXscBybn42hRLXbn2Y7Q z0bt7WtEY7sGgivKDHnJx22rw2JxSX5tN32wjfCj6ccGof5P9Adh6u72rij0pyi5TlmZKk2 mEC+CBW1jwkcT0DqxtDeq3ZG7FX3p6m+m1oppqCAw2X8pC8FKgQJ4F1whXWcBa18Tmqj5HC wbHnL3j8coDw487G0SPSA== X-UI-Out-Filterresults: notjunk:1; V01:K0:uyA3piDOnPs=:1kgR+PD1SDEjValK+tDJmK AEC0fYfA5yvumvQBjCRCGC5bXZr6DxkUDwCnuW5JhYchlmaCTsp4V7+QwlVAWh8klLBKzYqbS DjNaXVI3CKCYuBw6Y/DeHSqjIwIdP70ZT2QQ6uwxzerMIvijv6ikpeMCfGG3qTGuOi/eow38C 4CoTbgrevI2W8RZZxityKdz3tfBDcbOCEUXLdVgmOkkc5LMZHVAOEkvX9ziweW4Gmi18k8eM/ eDzNgKwv6JSzfpc5mEC9P1osE6YoPuGpRaGYpfWpu7LrTvQzMY6Q5ASKjqLkd253yyz3Y3rpO wM0BOQOL8TwSHOSE5Op629OXJEz9t3aRfDc9My+PWMgkGLv8VvmyETxqWhYoDOdWFqbLG/7n/ QnixkXI/YXNdn+3RLpv64uU11Tbrmf0Rg0nD/pTkAjZhytb+LBtv4+GXdfqfLnctaz3F6M/wH vXaQ0xxpTq5wm223Lm43t5lDkY00wxRXtu5uLto/TGxtrgdpD5NIA0pVl2C57MHDSpGhGCg1I /AqWeDIcKTxKUFSjZinhegoa0hj6qZexNjTgyw2HnOcSc3YEFtA3slK9/FmP3iE7C/N5bOKEa f39YH0p7qdc5EyCbgk8sy7Hfltvp1rBxktoAPLCbhXAxdzHLITAtBfxmsdLS043BlgqiSCSKb DXSEva3Al8Av4ChdKKHXt3zcO4MmXXYV4GPz+KrdE44ATyUs+BnXBa6ySlcLi5vm3DQuLlZQ3 sCJuKqNloayES4nixdm8K6AW1Y/SvqmalkSeDR1XHoafx8WEPK0FU6gqLU6Q3olV1fTTETrIV 9Hdhk43Zr9Uzn4hM5VAA6YbO2HOs7tmJXX89pwnITTGNq9HEW8= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 24 Jan 2018 21:09:28 +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/input/mouse/bcm5974.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c index d0122134f320..994805513df9 100644 --- a/drivers/input/mouse/bcm5974.c +++ b/drivers/input/mouse/bcm5974.c @@ -670,7 +670,6 @@ static int bcm5974_wellspring_mode(struct bcm5974 *dev, bool on) data = kmalloc(c->um_size, GFP_KERNEL); if (!data) { - dev_err(&dev->intf->dev, "out of memory\n"); retval = -ENOMEM; goto out; }