Received: by 10.223.176.46 with SMTP id f43csp2506096wra; Thu, 25 Jan 2018 10:53:32 -0800 (PST) X-Google-Smtp-Source: AH8x225hYNDvdrEJ+ygZkHeKSykgCuVCLMLUgmuYGOFYLZPetocM5oZrPklowVwBXLUilAXk8s79 X-Received: by 10.98.80.20 with SMTP id e20mr16755005pfb.148.1516906412414; Thu, 25 Jan 2018 10:53:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516906412; cv=none; d=google.com; s=arc-20160816; b=DQ2g2UaDiWnIf0CqM98x4NRZJYNzXguTth1rfUHk2qRMDCgkP5f8evr0sA690YNMat YxHBGAy8+28y1fmOXCkXcWdxqdL/DHdkQL+57iAm5k7gma7VTiP62SsUHowO1I5b1GCi G63WrCi8whmv8aCXwhEQ+Anh/NU3d1lA6hqempk1bgLbYRobr6A4OXtTyJ5GFk6ipr7f vc352OaaAr2jChl7lqSJFhJ/ob/zNfNyJT81sOnpL7wqg4wLAp53DyZeVygk5ucUiahp jUskMld2PrZB+HQN0crIeXA+t0KGlYLBpuqzb2QOsTYl9F9QBxYoqYTw6mdhMrWBifUi hImg== 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=5JIAt3RoZuVACxGlEgUC4BWQoPQ1UeUImhcKbz8vjZc=; b=NcpKFOuMt5pBx5s3r9V9l0k9wv/jw13/+awzgiu2ckfUR2a3TFndhcREAeizJRqgQQ yFeVyE4ZOkfekXT5d82B0Y8+0K+lhgcbuhoWdJLTizW30eqEllx+JV64PCrM7soNPYPw UVGUafK96i5ondWgi1A0fQTjT6WeaE+CpuiePx96wydZ8lBKyzzld57qAspBSYm6IXkm DB2BFtrf2eYtl5L/gLuSBpHVHgXGO/q7KXBoXxChV452Gi7ejNPLRa+jq0whvg6V9ir9 8gfVGQvp/Djgr0kbXtw2USqaGZLzJEaF8N/tTCmBpdeepqBB/DAbrNbA2CulhYc0XH5+ VEuQ== 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 j72si5030757pfk.24.2018.01.25.10.53.18; Thu, 25 Jan 2018 10:53:32 -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 S1751338AbeAYSws (ORCPT + 99 others); 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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } -- 2.16.1