Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752148AbeAPUke (ORCPT + 1 other); Tue, 16 Jan 2018 15:40:34 -0500 Received: from mout.web.de ([212.227.17.11]:64695 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751691AbeAPUkE (ORCPT ); Tue, 16 Jan 2018 15:40:04 -0500 Subject: [PATCH 1/2] macintosh/rack-meter: Delete an error message for a failed memory allocation in rackmeter_probe() From: SF Markus Elfring To: linuxppc-dev@lists.ozlabs.org, Benjamin Herrenschmidt Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Tue, 16 Jan 2018 21:39:57 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:/PLvv7PEvLzq615KvhyAkMGyFeC1dNBnLRszOT7Yytvy7W1pJz1 k7gl43DJSR72ISWfVVGmhdjjIXc/6UyqtwuCoQOMCqbBawAr2uK0MSh6dUrDy3nnv7q79eM f7TEoMAN2E1Nf/MQOsYMNcesf3kriBdSheqNvZ70SkSjjzRBI6J9yIZggZbEk90Ed6anCeY sAIlmUUaBqJXjyTUifueA== X-UI-Out-Filterresults: notjunk:1;V01:K0:dw1CKBakO6o=:S7b3gTXsivQNSrzdl8iUsO VRkl2uiP1U3WpFEqHJy2mqlokGaYs3hXgBpLm54wfrc5oU6l7hAGIrCyex33KulzJVGC+kuaA 0hmdiRzq+DKCvl9OGeBBxL0uL+2c75S+dNZPqreYFdzIoIC1jdY+ucv5hNXm6E1sk9Gp8Ylg4 j/GK60pVzkxgLR5X7fp/wv9EZmHfus/qon1yWcjiXir7xSVcJOj5aAoIKWxtx03wFHnTHj5OJ JO1cYt0xJ++ggYTQS7FtqSkwwc0i8nvIlTnTpeLFUtPYZOvOQqySfzjsj88FZBOE9Ti/mNWa4 /NWB++SkTzJVTGnbwm1yXp3V7TaoRnVij7wU5QtggbtrXjnuKjKEwI2oqAFJFy0GaICntsn2+ BNMK4EglN8KnD5mF3mQVO/YnUdNsdeYEvEMbBNYsK/U4HBdQ9A+Dk7+1DqJpvvgq+lPN4hEEZ D2QTwUE2cYAO9v+EAUBaQ9fvDc1cIA5W7g7+IvJS6MYUK3hhYnX/K5YdwIOx9DxWCkcv63xHK veQx7echzHEsaG2CU29VLVOH61PqI52iLqJh8t72GVmhe/I6igFd79NpgBGcZztUwu66dlZ2t yM1DdTCAKi/d8y8Vn9Atns3sZ2y41yZWZTqVTJ2YspjyYRdaGvteQF0U1SygCaqxeyQ7vd0ki xgGy+J6iPD3tN928/X+v8YGIMweMCacZ4TRoQ0GMaI58d7q7KngVKmJ6gMzC9OGBK16vr7tUw aowP2dgrycT1ZO7J3enAikKdswSdujA3eD5DSAKLcwsm97Fa+EiRZ5HBqlrvW8GOsx+wHE9we hULrM9XkIRqrqY8D71Tjm3JHjxogSr1cG6gjnp6km7kimDazQ8= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Tue, 16 Jan 2018 21:23:36 +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/macintosh/rack-meter.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/macintosh/rack-meter.c b/drivers/macintosh/rack-meter.c index 910b5b6f96b1..0796b74174d4 100644 --- a/drivers/macintosh/rack-meter.c +++ b/drivers/macintosh/rack-meter.c @@ -399,7 +399,6 @@ static int rackmeter_probe(struct macio_dev* mdev, /* Create and initialize our instance data */ rm = kzalloc(sizeof(struct rackmeter), GFP_KERNEL); if (rm == NULL) { - printk(KERN_ERR "rackmeter: failed to allocate memory !\n"); rc = -ENOMEM; goto bail_release; } -- 2.15.1