From patchwork Thu Jan 25 15:08:47 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: 10184173 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 061E460388 for ; Thu, 25 Jan 2018 15:09:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E93F528A75 for ; Thu, 25 Jan 2018 15:09:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DDD1328A9B; Thu, 25 Jan 2018 15:09:09 +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 7DA0B28A75 for ; Thu, 25 Jan 2018 15:09:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751354AbeAYPIx (ORCPT ); Thu, 25 Jan 2018 10:08:53 -0500 Received: from mout.web.de ([212.227.15.3]:55542 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751154AbeAYPIw (ORCPT ); Thu, 25 Jan 2018 10:08:52 -0500 Received: from [192.168.1.2] ([92.227.186.52]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M6xc5-1f1Kbf1fwj-00wkih; Thu, 25 Jan 2018 16:08:50 +0100 To: linux-input@vger.kernel.org, Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] Input: twl6040-vibra: Delete an error message for a failed memory allocation in twl6040_vibra_probe() Message-ID: Date: Thu, 25 Jan 2018 16:08:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:TDvN32zi+bHN4oMAvFa6NMTeRK4FyUHpghG7Y0tAZkiU5ERvnIu e7d7m4hHNIbGdbubQNvTiBkqudXxGBtfGmnzH0peAM9st5RDWCOhsi+PSVAWlW7xWIDjU7+ S8xsGFyXqwbjeNZZDS+HErMav2DeOvkknSwi+2g7/VvvYGWFVXqZ7I/WpnjYN/62BjIJ8R0 FExbV/QMXiWEXy8z9X8Bg== X-UI-Out-Filterresults: notjunk:1; V01:K0:mezq52IG838=:Ktqlu8Vfyer/7Vpd6IVQpN eOxK1KBKGK03RZ1tSbULnzghfmtost5U4pxuzxdCLTm0923TOARGHx4RK3I+AKbrgOM8Ovma4 Kuf3WdoWeGo6GCrvxPwLDxTnqG6qcOi7/X7eoz3IERqWewAh9bWmMVbqJ4PtU2TDb3w11ple1 6ZafxZMFXNAYSk/ObZ1fN4gF1/CzbgAhyztv+mRZ+lgsILdOC1UAcOXP4UCfmNIVUqYfuzENp 1QM4xTe2jb6ZDCgweaaIGIq8FBWji2qDT5FbLlzDIl/a4yJFvTqu0cvOq0gEkkb1rDlFaH+E6 d4R2JdtN38XinQkWTX9uzphfYw8keeTsTNN3hOAWrf77076GTFM83iz1UfIm0HBPoBFM8NTSV Zm9efmBU8iM6tx3DVSPmmU4u4UiEVyJq4bTzH7Fz/fvOSZp4jNgW5jE67xZqaIhsv8Gif76AD N7xUPm+joE/MHjt+1pz238vMcHWUnoIvfuYKF7VHyCmcezBOA22bMkgIwaa7pyj3hoBlMNm2A K0GlE7uxuWC8ofMD47mXzutY3LPbE0h2xl3gAWOu2XCJXIdQJHYU18SWiGobWulWElq16kFVO EUdw8P8W+ny4GskSvjGZFGhCI5AUXTPm++kMOJDr8NbFxlQ3z+qV2SSOkY+qzvWMCzx45MXE7 Wfk4t++uxFNIZ6RCaQJ3op3IFUeRWup2Blsba17mN2C3CpmtczzrXEPuv/VwuyNyOsr+lQycY 7HUBJSObJQ0HVlaCaMD9N8WI/OG98cx92F28DqWJDn8sq/LqwsWwKhMVX7nq0TY8FYR94blis nftIOJQVkAWC5Oiyzu5Bmwvvsdyfdbddi62SH2NMAYtDDCc95s= 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 16:01:32 +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/twl6040-vibra.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/twl6040-vibra.c b/drivers/input/misc/twl6040-vibra.c index 5690eb7ff954..1bdca0eeed3f 100644 --- a/drivers/input/misc/twl6040-vibra.c +++ b/drivers/input/misc/twl6040-vibra.c @@ -259,7 +259,6 @@ static int twl6040_vibra_probe(struct platform_device *pdev) info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); if (!info) { of_node_put(twl6040_core_node); - dev_err(&pdev->dev, "couldn't allocate memory\n"); return -ENOMEM; }