From patchwork Wed Jan 24 19:56:11 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: 10183053 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 96C1860233 for ; Wed, 24 Jan 2018 19:56:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 986F02866F for ; Wed, 24 Jan 2018 19:56:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CB302893F; Wed, 24 Jan 2018 19:56:29 +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 16E7C2866F for ; Wed, 24 Jan 2018 19:56:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932072AbeAXT4P (ORCPT ); Wed, 24 Jan 2018 14:56:15 -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-Language: en-GB 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-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 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,