Received: by 10.223.185.116 with SMTP id b49csp1021912wrg; Fri, 16 Feb 2018 10:59:33 -0800 (PST) X-Google-Smtp-Source: AH8x227Ezw21sjAPitom+WsttjBuAX2AvPDAWhlR20Z3y3GaeauE4HqfxhO9bi9qqrZRIFxeGNuM X-Received: by 2002:a17:902:7c84:: with SMTP id y4-v6mr6625348pll.305.1518807573866; Fri, 16 Feb 2018 10:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518807573; cv=none; d=google.com; s=arc-20160816; b=f1k/ZyTJoVtefM0aSZZWEbEiBUqWme7ezl931JS2BfQqzFpDt95gn42uG24KSEZB/G 3jlHX2RJ1iGYj35mgsGKMDo7LiX7u04PtpbG+ABauzhpetPmjiFlwOoIVlNeO7EA2vVi 5ojlgJ5GecjJ+W+pIudgYneaBGjDHphbqtFVCseTh7rW2aNO7mjJgQIhXi1WnpYFCHkv sFCT++mzIWwYZQBHRFxAWKMhP5zKFSahlJZOMcx/SdDQTtzl1NqitmsMBEUmbkNumEYu TD3zaT+epsDQeKO86/uusMgJk03VEcaE9l2ypaBhXv80N2dYLBDYhjsgu66nc6+DVNdo D2/g== 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=ZHcTuPcICK0HZNBg66mx9L3wwGECnenvA4JmgFwdG3c=; b=rfJrsW8XaBZ1Z8sca/9pxXRp4FuDhBKkle71qQ58UQ7WpD1JpzAo84RoDkc8yeC+PX 1lx3oLz/WVc8P6fd5JdJnNeFLtIyAa8kxepiYl+Z8ZsaFJ0MOWVnpoaLgjDtT+6QhQHp 9F6Bkj6OUcPSXJM8K9MHazifhPGrniAlqJTpklmCCpy2yjV9XxlQIz/4jxb2rPtlOTjN Qt8ZSkKuX2rrym/5pksuPYjGTEZuZ43QKwaxro2XZH5RJR/GH0c+m5rKV5bTuksBAtGQ eMIdVWWDLXaOfJTx2CVMKFBHzdC89W21P/Q5beeh9nbz4aHUPKc1OhJ4w5w83BWogqyJ AbrQ== 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 64-v6si1686601plk.167.2018.02.16.10.59.19; Fri, 16 Feb 2018 10:59:33 -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 S933867AbeBPKod (ORCPT + 99 others); Fri, 16 Feb 2018 05:44:33 -0500 Received: from mout.web.de ([212.227.17.11]:46911 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933759AbeBPKoa (ORCPT ); Fri, 16 Feb 2018 05:44:30 -0500 Received: from [192.168.1.2] ([77.182.211.116]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MDxGV-1f0c0q0I3z-00HQ3h; Fri, 16 Feb 2018 11:44:19 +0100 To: linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz , Tejun Heo Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe() Message-ID: Date: Fri, 16 Feb 2018 11:44:13 +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-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:zH+pwWaMrgrUj2UfgDwrv5qKJzPQauh8pRi9RTLKbHBwoXgrsiN 0VvDOIPrO+WpotywZLZMH4V4n9ShwfLdTiTwZ5S3DBg3fnZlSrUtCa5objm9/CEw6w57t88 eLXChid40Ke26VPnZy6ba1ScfvHHG9pMD1y6hpoRJ9XFsSv7ywsOUDnDOhV749yyQ3zwYeb HeB+Z5zcK0pzTjRwpxawQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:m7rXVQ3nRF0=:kZM9WXrS62/EUXZ8pzsog8 aHkAvL0OG4y898a8AnElcm6COk8uIRaIaTBm18k1LJLLpffXCIQgaSEtxDeVM7AHKpDcb4OS/ vNPaWaECDAQTi3t4e1Ei2jxrFFK4cQKqypIuRIj1Q9I+tznRS0gCjN+S4WEPBAs3nrvn4ZD7v KlwddYDFk9yH754E0yKCcOsI7bzhN099YBytEPyy2H975Ye8C+thz5CCmaTlPci3HxllC0J6/ AMp1wM6361IEILQ2xcPIifFxq+kRJQzYKgLA7emIceVl2GWw51xsmOkgw1yIY64DuWaAun0dD nhE6rZ2dFQlVfWbwHvpr22hH01FqMuJFcJZPe+SWJidcS1f7IXirtyFG7SYL8sardv0KDXiIJ F6aJrO6EGyHWEI8rxbCC1Yi6igzdOucj3QMHaKpeCv1BaSd6abB6842utZ8A42eJznicza8PD lruQ9l7A+SHZjr6znxNzI8X+BqtA3SY9izvteIDCrpAQyk8qz4coDgiJUMe30n2n1MfASPc6A d0ELcKK4NsZJp3+NKs23DmG32usD13GmY2tdaEiWsa8zPhnheK9/r4uSR/ttKVtndp9l7tL11 CYWozXsYHP8FsGti5wrpPpog50gyS5cnQxFJGDstMVBsrH1/6VxUCR6eLXSeHLsGA5M2IL+EI K4ARWh3zmECspOwjXI4gUqF0Yuz+V5hGV2P7EWYyWlSN4Jiw7tsNU2p863lhE5RDZTZRso0Xb u5EvW9b6XGJDb6OkMHQC2fnsByjmAWKylMLAsR3uKxQio7T4cbbL8tC4guT3Am3KQa57nSJXH lLMIySGh06Onq+KTdZtWro9S8tFk4/oQIoWkSxHkdX1CTuLj3Y= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Fri, 16 Feb 2018 11:34:53 +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/ata/pata_mpc52xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index 9730125530f6..f1d352d5f128 100644 --- a/drivers/ata/pata_mpc52xx.c +++ b/drivers/ata/pata_mpc52xx.c @@ -738,7 +738,6 @@ static int mpc52xx_ata_probe(struct platform_device *op) /* Prepare our private structure */ priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_ATOMIC); if (!priv) { - dev_err(&op->dev, "error allocating private structure\n"); rv = -ENOMEM; goto err1; } -- 2.16.1