Received: by 10.223.176.46 with SMTP id f43csp1176314wra; Wed, 24 Jan 2018 11:57:03 -0800 (PST) X-Google-Smtp-Source: AH8x2270NkNSUeJYEhMONeS86BOOVzWKp4sJafPX5HICAhlgGmSKSJLyAribOAnulU9Yo+qlrp6R X-Received: by 10.101.83.76 with SMTP id w12mr11138036pgr.95.1516823823090; Wed, 24 Jan 2018 11:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516823823; cv=none; d=google.com; s=arc-20160816; b=KV+Z4ZpSTuRfhK0ohCbbXjsjxeRqtMc0qyMD4Z1bnYWi3xaidwxpo+pKM8Swxoy5LY +O6U69q/sjpK9GIasAAS4/WEFRLsLg9ZAsUepauKXudEqXTyiVd1+n6fHizMGkV6jEsy Y5ou4NLR110I+p8+hFI7jRaekTQuTcUTu3plkFHa5bUMtjmXMqegS5fif6Ovymha/wub HbW7qGlpEsG8OZUS5fkWNTETFbdpPDoqQ6IFC+cIA2LEZy1k6SB8pZowWWhgQDK2Bhyk herB03WpxGWaX4xw4ZtKdBvxOmxSYER7nT0w+UU62r6AMYoQO8BnSWtqxxP3bfN+qewc e43A== 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=PMzaEDKY7ORIWYW64zkrbP3IWaGKu79biOI49AVE5B4=; b=yyJx7t4NlK9IvwF8XyzpxAKVlA5tv0KL9qgvo/UqTVkqKludzbI4u3Gqd3XiHdTnbD FNVnDaxM/5GmtwEeLO6qRAI2E7MuL7WfqnX96+vvRbSn9/yl+20gy58eLvkVp0xiM6Es WfkNts9fi54PaFC8wFmouVWIAWBM5XFAgvS9D8ViYM/pKi/85Yx64R7VZ3WM4g3Zg+i4 KlGEm6Rr31/z5kRFXeKoaf5HyCiITB2g6LZSZo9FxKCMaMTyI5OkkOc/x5ZjRmV9O0Iv Jp32TiyWqSCuhhXeJ35CWY80JrH0ijGsGs79cMd7nwIl3So+JJH1HmP7kzabwlgkpVpq SBdQ== 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 h32-v6si648529pld.717.2018.01.24.11.56.48; Wed, 24 Jan 2018 11:57:03 -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 S932206AbeAXT4Q (ORCPT + 99 others); Wed, 24 Jan 2018 14:56:16 -0500 Received: from mout.web.de ([212.227.15.14]:55102 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752435AbeAXT4O (ORCPT ); Wed, 24 Jan 2018 14:56:14 -0500 Received: from [192.168.1.2] ([77.181.242.198]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MapFS-1eL87C121C-00KPLE; Wed, 24 Jan 2018 20:56:12 +0100 Subject: [PATCH 1/2] Input: appletouch: Delete an error message for a failed memory allocation in atp_geyser_init() From: SF Markus Elfring To: linux-input@vger.kernel.org, Arvind Yadav , Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Wed, 24 Jan 2018 20:56:11 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:xC2o2TzzGjf6A4ZnU5quAlJ+9j42X1RnXuUmqJW16+IRtuptUQP SWJ0phLNdZ5Cjiu4Ig3ZLXGaQAu3LlFDyFzUIA0nXkkS939ZBLHWRvF6z1kLrP9KKS26gOV iluWiGWLuhwEgCzFQpLW4uCmP8/6f0Cp8Z16dQAf0QvZYG61rWug2m3/bXkUUXC02Mj8d9P CYrAE1pcKLg0a6SeHgGQg== X-UI-Out-Filterresults: notjunk:1;V01:K0:eNQGsQMA6Do=:IW4FPjG3tBdwy0MIogFZdk 96CRniwI3HhbRlYPaDaBFHos4DrspEHL0U+LKALRN5u+pIPsRiS8eZ5UFmG1EzqvOOJoPVbAZ EgKnIu8bI0do7kKrrZbFWGAEzgOnBWUYKwVhOI/nU+C/g6HqQ3IpX36/OhTSaINcTEmV30sQR gDiiyDDydOOqJTm8Wh05nOL11o/9jOjw3FXSmZa+eJSS3F7HGf43H/pZfD5FrjDmlpPkUOPI/ qXkZu5gGrd8WQccSTuZKVT3JuDwQ4LHDXllkHDUhLYqQyNR+Z0oi0RSDTD6tqanpnXoCuTOpR pV8iSM7tBn/d06N4iOoI3+Ema0h6C2PCpdhOr6xgkRC6DAQ6ZGHHgCtfGxz21N21ovBFBBRjj gAOfH+yee6Qa2TzBzJ4KUgSzz0wbSeVLop58GfuT77OB5s5Q9S3J2koWby+vJxFkwKfODCrtn jz7uF7LL18/RoUUHSNwmhhB7WQ/QhJApc7bXzaRlIN6B8Wvia/qovKXstxceylGpwwYkPhtsQ wxe8uyfUmW/Qj9Uc2hDQUBh1ZEFHUiRVyEb/4QKSt+qZCSecNxhUO7qMubdtmjwh3of29gpo9 QJq6LKt0FKlh2IEosdHUdBheYyk+8gQKTlxevcDRT3Xg84uDlJ5MXCwjFDKTV9JKZA1NMZ/2i XXs/IegfFkO12dCLd46yKnwl2mZ88PD4kzvPLcgZxwVgPUUkCNEHbtImLzkl88Rwn5qv0cMGz QsKstUHXaXSwBV/PH3zi2AItyxKGbZL9aeQ9ONsvFOrBLSVBooQAwc6zWwQsrm/NQHDSP1Z1k yoyetYIwuxgZQkOp/Rc+R7T/P19kvW++lXgNz7m0OPAh+1DZuU= 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 20:40:54 +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/appletouch.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/input/mouse/appletouch.c b/drivers/input/mouse/appletouch.c index 81a695d0b4e0..3a709d21ea93 100644 --- a/drivers/input/mouse/appletouch.c +++ b/drivers/input/mouse/appletouch.c @@ -280,10 +280,8 @@ static int atp_geyser_init(struct atp *dev) int ret; data = kmalloc(8, GFP_KERNEL); - if (!data) { - dev_err(&dev->intf->dev, "Out of memory\n"); + if (!data) return -ENOMEM; - } size = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), ATP_GEYSER_MODE_READ_REQUEST_ID, -- 2.16.1