From patchwork Thu Jan 25 21:06:01 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: 10184801 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 4044F60388 for ; Thu, 25 Jan 2018 21:06:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F7F128948 for ; Thu, 25 Jan 2018 21:06:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23A2828A94; Thu, 25 Jan 2018 21:06:07 +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 D152D28948 for ; Thu, 25 Jan 2018 21:06:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751213AbeAYVGF (ORCPT ); Thu, 25 Jan 2018 16:06:05 -0500 Received: from mout.web.de ([212.227.15.14]:60716 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbeAYVGE (ORCPT ); Thu, 25 Jan 2018 16:06:04 -0500 Received: from [192.168.1.2] ([92.227.186.52]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lechi-1f89i82vj4-00qOvQ; Thu, 25 Jan 2018 22:06:02 +0100 To: linux-input@vger.kernel.org, Dmitry Torokhov Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] Input: sh_keysc: Delete an error message for a failed memory allocation in sh_keysc_probe() Message-ID: <28d7c2df-81ed-95b3-ba9d-bf6c8aa00197@users.sourceforge.net> Date: Thu, 25 Jan 2018 22:06:01 +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:lM1VzOwAT6Noac/BNjtp9qKvwiEIgGH+6mw1xPNLtFsOrb9ZmBo uLXX2z1t3AU5UpptJqOzq8pNCJQmwBbj35SDM2H7Oa/BNPldIzJbRUljg72loVcypQIMm9Y lhqoeMs/a2HZ8Pla3LFZK8WKJpg0cMnVZKIl68QhISciJbcllatHo5VY3iw8x9pRLLz6HOM 7vmA6+1IrlmzmWv8blPew== X-UI-Out-Filterresults: notjunk:1; V01:K0:8vp7AS3Enac=:VNGL8+fHgbRma4FA5U30nq aN5fVzX7YOCbmh7MXyxwjsomMnjPbUaPTYIjuRJ70HIyoSwGk29+TJaSkL5O38fpYa/sySxml AEovr+/f4NCfOQcilZhnYHl9x9cRyiVC6r7lN16eZxRYjGVkSJWDM2u0p1Uhb5HXQYc2SE6u0 IMsPqQrtmYst1oPaDDErirU0kfgrTCFSM+wqIxwMU0b91T7kS+HRjoMN4PYI/2R51nlqmfieD wMgRs/YFbDR2CQ4d9Nb4sS7QNlaB4veCyIFOi9HKP25jsrSIWyNwr6XIDsz606QvwAtrRsUab /BoB9anE+eDhQFsyVQlrznk7oRMfKtsf0ZezBE3b2BYzyByWVoG7A+YPKK3HinDLTNbhMhFmb a9pfymHdhZWkW5oqGDH7KIQ6ZeDo9GbrnCuWNpW5kb+yQfYjQaeGqyPMifqXJOhBTC6i0+rWX wnZFo64EhloTrP+bAvRrzdH7AEcAKYOdueG+xNsYp9pZfgXL16yOe/JphMmCcocWATp2HtX6x LOGJ7ldnUb5hn86/s4le1cqNtzRQq9BZ/BjVtbjA8RRgQkspTeCRGoK2EYAa2jPgiY92i2slP l8Dj9Z8Y2BeayZPYYkkeN1xgyc34pNDitwhILS8YupVX3DnvH44B72ta3GTDCgJv3CxjFkRAY ITHvcijYs9/sfB1azLKwImGAx9L7dhGfYGvB7kmMSgV4T3a07G8d5l1/1Biq8Xk82yAttbDnJ Irdu8r1RvNQgMWZmnbb02QHFV+vN98TBrw5HEb2P7gpgvp+92gA3b8cMa5tmLUJvzC0TzJqXK yQuSUcSTBQnGFWMAB0dFzV/N1LGZb2S5ieYSXMIsY0c09N7mw8= 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 22:02:46 +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/keyboard/sh_keysc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/keyboard/sh_keysc.c b/drivers/input/keyboard/sh_keysc.c index 7abf03b4cc9c..e214d47724f8 100644 --- a/drivers/input/keyboard/sh_keysc.c +++ b/drivers/input/keyboard/sh_keysc.c @@ -191,7 +191,6 @@ static int sh_keysc_probe(struct platform_device *pdev) priv = kzalloc(sizeof(*priv), GFP_KERNEL); if (priv == NULL) { - dev_err(&pdev->dev, "failed to allocate driver data\n"); error = -ENOMEM; goto err0; }