Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932090AbeAHNIj (ORCPT + 1 other); Mon, 8 Jan 2018 08:08:39 -0500 Received: from mout.web.de ([212.227.15.4]:56151 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757367AbeAHNIh (ORCPT ); Mon, 8 Jan 2018 08:08:37 -0500 Subject: [PATCH 1/3] misc/ibmasm: Delete an error message for a failed memory allocation in ibmasm_init_one() From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Andy Shevchenko , Anton Vasilyev , Arnd Bergmann , Greg Kroah-Hartman , Jiri Kosina Cc: LKML References: <842e4179-dbac-cd43-e320-c5009d896a28@users.sourceforge.net> Message-ID: Date: Mon, 8 Jan 2018 14:08:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <842e4179-dbac-cd43-e320-c5009d896a28@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:6IIjnLM24lO9dJvVeE9JHDcPQy2qklGVwLTz6v6IwzRQgolmTFG VKF+n/TAbW54aGz67IpZ6IEaX75W0yn9Ceu0S1UbVI8HWNVINFDZ8l0oH3DDE7SZThf/qC0 qQ7xW33Yl+QY9vC9CkLi6SduzzAn9vy/HNswdZIMfBVTTaj43ct5oXMkKSvqA15Cvcm9j3S 3wRm4Ue4vTcgAXrOhgKog== X-UI-Out-Filterresults: notjunk:1;V01:K0:vTbuQuy+AJs=:dHrWexGeaKhis/VZ//9zfj /S0xicqPxfohwUsEwaDDOSalB9KQHf5yhQDzbNHcRddxdT7UlnA+sRyW7tTBAismon1zWCd3u KLYnncPWEEr5C7YOPBBlF+wpWRSEzfAEiH6sohJ5L/oe+OrCj5vq9P/NYntfZqJMVxOT3Hk9i Gx00Nybixoet9Qm6R3jf4Kwq8dCInR3mRJvRXJN2aRH/tDy/OXV5OKtqfouCPVLiTcRD2tXRx +50fOg0WDvMOAXj71xOfZMEUmUcnEVNpZcV2wgJSPA0QycifIxhdtJItU/JrkaoW2Q+S6gQn9 Ox6eRP6Euk1PnlWaWM//R/Kxw6nrtD7zUT2P/SDCc0P7yc+wg8amkxc8wVfYgFO4z2eiAlMn/ hNQBak3UVB441VT4p7DvbUbnsRTVlQLbyxZokps9MjKlFF/WpPm6TfYuXpzCNqU1Xlz/ZPtdc qQS1qYccQUwIeNVBJYdBZwmXuoFrXlYjrlC4XzLyttS5RJhayJuhJg0cCkg8SpOME0ppMaKlD ATBk4bj7wkw7hmDXH4SKdZMUeDJucVxnWYUdfUdxzzfdk255xYC2CPoG0FUOBmrD0floUA9pB 2ddp8gHDf1wQlDT0nwBUtktXwvvxd4/8MNbPjDB9WOMcOahdPjWzmTeVbnFctl3XBKXAaaPdt sWJzS1iW21hdIOMuO8k52+LwTkKQna+OnrEanZmgIB0NQUJDChv3anAwP46D/rUCAgeyZP/uh vyWHFnA6Z+YIbrF7bCzx8VRE5jd8FA2WkLRO7OsA9e3dGPCnRkLa75eyiR1tVz+dxCoV3GArs gexVbhOCAO/km5JcGicfsWnHUdl0sX+zFBxTM/w+r0tZyo8vLc= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Mon, 8 Jan 2018 13:34:55 +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/misc/ibmasm/module.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/ibmasm/module.c b/drivers/misc/ibmasm/module.c index e914b8c80943..d22b3c428ca9 100644 --- a/drivers/misc/ibmasm/module.c +++ b/drivers/misc/ibmasm/module.c @@ -80,7 +80,6 @@ static int ibmasm_init_one(struct pci_dev *pdev, const struct pci_device_id *id) sp = kzalloc(sizeof(struct service_processor), GFP_KERNEL); if (sp == NULL) { - dev_err(&pdev->dev, "Failed to allocate memory\n"); result = -ENOMEM; goto error_kmalloc; } -- 2.15.1