Received: by 10.223.176.46 with SMTP id f43csp1211751wra; Wed, 24 Jan 2018 12:31:01 -0800 (PST) X-Google-Smtp-Source: AH8x226pZUehKT/IvGwpVOjD4kVsmq+3jliYsSxrAgFW6U367nShecaTvjPru+hZVlYUSXT8r7qS X-Received: by 2002:a17:902:bcc5:: with SMTP id o5-v6mr9328592pls.67.1516825861722; Wed, 24 Jan 2018 12:31:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516825861; cv=none; d=google.com; s=arc-20160816; b=T0wl7aQT+3Jxs2ehGYeJ5gvlD2qGRN3HP1rb50b5oCSoqJNNu5useke5QCjc8hLRIl EG/q0bn7wOnTqR7V/T4h85gzsvZ0hGlcQIVYSKY5z/kOxJ9T5eSZ3Pw8s2PbAa6scLf5 H9MRYgkwhW5ZOx8O3eOtmBJD++cwsnz4QhUgkbavEU5/msPkKsFdZUPE3cbtM2S6jfr/ 4PT8rNmb/5EyZs6uy7WkXDWka/l1VXKZwKlU3/HhbCbXVgTBPmP9AqIJ+ug43WaB6CPP MWn8RWwyI4tBqLQTWQbaQWtfDLx8Qq+lHAw/I0g5LEOdPcmtIiLoPL2hRDz6VMbOW61Z O64A== 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=lUv9vKCfvGE5GGFBHciTYdzwQMz/zMsTbZ9x1zSyXw4=; b=0O+HyZC/JzXWKJmaBfUzHoLUQ3+3a3kGRYRWKVxtFW9H5IRctrjh2apprBL6WDdJCz VTYzOGe//OBqCxv2tJB4tolay2pxP+rLpJuqic9kxCBsh3/QlQtsMtq7w0fPR2/Yib++ wUxTrOKyepCSXKChRGLR9G8ThYiyJmpgt1c3G1t4RC4f1nMsPqrmS07cp9746g4vOrzh cDN9Jqef0l6LpDGlb+8MK2sCoFGDYtpEWp7/0EeXapGXuTPheIRA0CMck8WvYeZjncY6 OSA+0PSuEX0cBTaFJQZqk7cRCcstfG2gqqhxXS8MwvEKF3s/CykKNhWjvAHDCDE2VKFE qoSQ== 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 e22-v6si706021plj.334.2018.01.24.12.30.47; Wed, 24 Jan 2018 12:31:01 -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 S932528AbeAXUaP (ORCPT + 99 others); Wed, 24 Jan 2018 15:30:15 -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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } -- 2.16.1