Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965030AbeAOPO0 (ORCPT + 1 other); Mon, 15 Jan 2018 10:14:26 -0500 Received: from mout.web.de ([212.227.15.4]:54732 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933952AbeAOPOY (ORCPT ); Mon, 15 Jan 2018 10:14:24 -0500 Subject: [PATCH 1/3] mfd/sm501: Delete an error message for a failed memory allocation in two functions From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Lee Jones Cc: LKML References: Message-ID: <132f079f-8f99-329f-105b-91542ed7fcca@users.sourceforge.net> Date: Mon, 15 Jan 2018 16:14:22 +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:CNow/9vpOJgeXJcEy7PRKjwLNxRJIYZUuBr6UxBZFdJBNtxUKmM 9QhYFcLXybBhVkCw/a92XDtO8aUsO4MhUIxs4utH0RK1DmN1Ds/FomdFjiyNKz0UMLjXAZs ASb+BVbasNfM/NvpvCHSOUMDaJNN2uswEo0iwq75bBXX8gvVksDqX92cJmKv0SB08VXtm2x kFTVStWbFhuYarggU7VGA== X-UI-Out-Filterresults: notjunk:1;V01:K0:O+1CHKF9ruc=:twk1x3wcJp6QbZrjwVmUSg H1xulmsykg5iSgbOcHsTf8aLqpHR/OT1zdil17gQ+uqaWLWZXiaWaE2d/smu83WbkVDATZ3o4 5k/9Uxs45P9UzjarHMiP3HGljb/zU2GSbTxwD1F8GoKSrfkJELtCyigcfHMVPKTpXxkwGZFJB 5w/eIGvZmMX9FaAiLPrltiCRKG4JTCOfBLBobIFYVCCGEiTirv88JWRUsSWG3k+PIBCoCsfZb MO+v2VmllmPhALpDhnLge5nWWaD5LxWjoH8dc3/09TaBNhNb3PYH9NZ2otp+zjf19WtVGN1aA M++GpQXPZjKRidUaKYFOlVGI1FMqTWfqpzwiPQBB01f9El15MUQpYAdGsowO29QOMRIIupGwR pLiDB0u42rE0wmozdqhtjFcqwk6wM03B295xnMB6cwlrFRegIUPZN1ugIlkcYDgesAsLQyZ01 OQcrIxB/5HUdctX7x8dbwjYrcFEE3MREdaGepMpiheGeCqiNczqE929FjfgGI5Xp/xv9BBOfh ILbdpXiPit9XXdNuvHybuALxZSV3J/9xXY7eIzHPqlNvAUBru2FKL/MnVqJJOhlLIFJ7EvYPx fZeKwETJYXjfEi5fDNy7fQfCGOBMM/R5PKJZtt7XaXBrJJLlwP7w3RWz3yLLHtVNhVBbsIn/g cfiHnW3h373LtY/QDwQsGLPcl8SHTaysFLpnufXBUafZKyZOTU+AoRGQ+2Rnl8T4gnl5dIDW+ eRYM4e+9+sHLNW4STgW57aNl+1p4y+VjiTBvgOwAXzwX/bjST7hI7ANvhJLsgPfd9w6wY2IGI sfFAz0epnXVGCnZH0Oi9jCsanq9rORULBf4d+edOV6V/F80lFs= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Mon, 15 Jan 2018 15:40:46 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/mfd/sm501.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index ad774161a22d..7298d6b571a1 100644 --- a/drivers/mfd/sm501.c +++ b/drivers/mfd/sm501.c @@ -1385,7 +1385,6 @@ static int sm501_plat_probe(struct platform_device *dev) sm = kzalloc(sizeof(struct sm501_devdata), GFP_KERNEL); if (sm == NULL) { - dev_err(&dev->dev, "no memory for device data\n"); ret = -ENOMEM; goto err1; } @@ -1575,7 +1574,6 @@ static int sm501_pci_probe(struct pci_dev *dev, sm = kzalloc(sizeof(struct sm501_devdata), GFP_KERNEL); if (sm == NULL) { - dev_err(&dev->dev, "no memory for device data\n"); err = -ENOMEM; goto err1; } -- 2.15.1