From patchwork Thu Jan 25 18:52:33 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: 10184655 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 4E20F60388 for ; Thu, 25 Jan 2018 18:53:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DCD82871B for ; Thu, 25 Jan 2018 18:53:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 327AA28770; Thu, 25 Jan 2018 18:53:03 +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 D2B692871B for ; Thu, 25 Jan 2018 18:53:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751200AbeAYSws (ORCPT ); Thu, 25 Jan 2018 13:52:48 -0500 Received: from mout.web.de ([212.227.15.3]:50670 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751171AbeAYSwq (ORCPT ); Thu, 25 Jan 2018 13:52:46 -0500 Received: from [192.168.1.2] ([92.227.186.52]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LilMD-1fDIVi0zyH-00d2CQ; Thu, 25 Jan 2018 19:52:35 +0100 Subject: [PATCH 1/3] Input: ims-pcu: Delete an error message for a failed memory allocation in ims_pcu_buffers_alloc() From: SF Markus Elfring To: linux-input@vger.kernel.org, Arvind Yadav , Dmitry Torokhov , Joe Perches , Johan Hovold , Zhen Lei Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <64bbf341-27eb-ed44-a37d-758b9ab486b4@users.sourceforge.net> Date: Thu, 25 Jan 2018 19:52:33 +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-Language: en-GB X-Provags-ID: V03:K0:2Wb0zUsC0fjvINEn5pTK+eFi409VzHs8hBCqc1z5hxujMPbB1/K sxNFAT29WsRFT4FOMfxcjDuzaI4QXn2QpQMpC2yg34M9PlQ0Gu/QWToSeBFX5YphDclRaLf 3sL45xeR8lMrD9aKViyUlMtf6WLKGxlhLlGNd50N3ceVU5UmCDV8UMGsLaFQQngTugs6xKo 6WAswbV0FnXCLK03D0l9g== X-UI-Out-Filterresults: notjunk:1; V01:K0:a3vjWuFdI60=:jHSkJbULy5VbQhwQJrm1W6 BHcfLvVVldgmFBn5Sg+bNA7KRf3L9wGDvvJriFh9w7/INAL9pxwAHWHZ/dQHWE8kpjLKPWry6 M18qrP5aIq+cxFdnLyq0AohMr3e5wb5wm8hDdnJqBxA5SLwvZu/Ibfpijle88QlNhX2WVuLSj CwC3nFX3z0//0nkbSR3Dx6LH6/kgd1rGiU4R7wE7z9k0xGwdfLoQfI3c3hTmffdSZbUUm1aVy zmckgo9NAbHEgDZwenIkGV/qhfNVwo9ILXGxKjZXu1YT6T5VVePCtcHB/b/NjtVl8j8T26EJL LfK+MJTI9ga4NoOsz4UZG5V0SC0V4JOkrjnFfd++EC+FcOYXMZ/V0SBW4b4fhi/O3ZPk0oJo9 7YQhfHlhstzWJglcND9mYkWiEBEZIhJWgT3bi3lT4L6yMyqmvqfl9Tbqvrr8vWHjwWeg8xEPZ FKJ4uJst+v4PNzKHBlTMkaQlRs9MQcndfk/UTYLe83LJXckVHNflkXevsKp0EPHM01o+2KBJy isqNhLdGfa3H+rKeLYsCbniOS+kbkgSIN1iucF/MjpYCQWscsty3D+mEnXyHgpRLJMdUW3COn IudJ/bjxWiUpO0rkyTkaFyI5TI+Abqn5MgjjshQETHzG+9cPzaGKLs6sa/cYaVBhMy18nkHrZ i+20BjVBzsIAC7elKk6UpqYIAw474wX6coZT1jVSWnWjL9pJYP0uMS1EHeqWntr3NsI1/XX+V uG7YOBDNQLhF9b9nISOiLYXmZTjZZriLKDExlzo8JK9u8aHO9NfpnkDLTvApGP0N/w0cYvOop mPj/HTWDUTfS0n6XPWBdhhsHvvuXFWhp9NeqqdSWKK8V2YTFUc= 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: Thu, 25 Jan 2018 19:06:07 +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/misc/ims-pcu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/ims-pcu.c b/drivers/input/misc/ims-pcu.c index 3d51175c4d72..4aca2a02ff6d 100644 --- a/drivers/input/misc/ims-pcu.c +++ b/drivers/input/misc/ims-pcu.c @@ -1556,7 +1556,6 @@ static int ims_pcu_buffers_alloc(struct ims_pcu *pcu) */ pcu->urb_out_buf = kmalloc(pcu->max_out_size, GFP_KERNEL); if (!pcu->urb_out_buf) { - dev_err(pcu->dev, "Failed to allocate memory for write buffer\n"); error = -ENOMEM; goto err_free_in_urb; }