Received: by 10.223.176.46 with SMTP id f43csp2250463wra; Thu, 25 Jan 2018 07:09:36 -0800 (PST) X-Google-Smtp-Source: AH8x225H/Gtc4tjbYW4E2c2hOrnHwj7WcUgofGpUfaZ9hcwz+Z7jhJpfzBuOG84O6tCk+vvnEoLj X-Received: by 2002:a17:902:901:: with SMTP id 1-v6mr5620544plm.165.1516892976392; Thu, 25 Jan 2018 07:09:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516892976; cv=none; d=google.com; s=arc-20160816; b=l2LzHT6Glg2N8wbLQixZZx++gA3064ZkMe3DlH1XO1Hwzq2fvK+Ejz0w0DUdQ4qiU/ qwxKSznE+f+Bu6cwBjMdTAhbsF5wk1FWJcVu4Q90vGQCI44MArrtzHOH6pbOOEp1HnyT MULW6bPLxOHeAxN+afe4kdnWbypf4RX8DXS5EOZ2Rd3qhTBuOx48ExS7i1wrqjSrNtxd wEmWA7rQL8ePznUjv0ZK/dkG2yODVrmaigNvVjFnNUVGmPxfxCR7QH6Zvr25NjX7yogz 1wsEo/RoNBDSWxGWuVMlw6/sIx1Al1zkrTzN1se1UIEY6hVIeKsI6SdgI1Dbwd2SFpNU 0rNQ== 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:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=i4FTGblB0zbemBbYjYQ0JWM18ueKq1MabUR5uCA/u8A=; b=tkA2M7gn0FoDw4b1FmKf7pVAXel5UJrxrQl/vnBciz0KTdn1/xtDk0qnKMgMweySxt 63s9G4KVCSB0PIQf7NUdWwz56m7wwBQTGXGiOupFof6dzFI4+92p2BbWoQW/zZdT3vw5 EDPsMnwd/hunKkSFhUyD1t5ETvq/kujz3axjCdUq0lSrUQCDvu4IhV5XInYLqFxIUxkQ EPxUsHDrRTqCgK4+chWkM8ZkAbVdApiYE819wiy6NYsffFh+bfsPhQmT5qCKMCZ+DTf9 LpvWFKmP07kdNPNljJO3eBrZBSLJ5TsTb7VQHjsnTnZ+HmI73VLHTFl1t0Qs3DIqHk7z i7dw== 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 w23si1648541pgv.29.2018.01.25.07.09.20; Thu, 25 Jan 2018 07:09:36 -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 S1751513AbeAYPIy (ORCPT + 99 others); Thu, 25 Jan 2018 10:08:54 -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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit 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-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 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; } -- 2.16.1