Received: by 10.223.185.116 with SMTP id b49csp1021184wrg; Fri, 16 Feb 2018 10:58:37 -0800 (PST) X-Google-Smtp-Source: AH8x225Moiwyg8tOaOsdJbYY7a9GVws/CzrRsfF4XJeCIAjlMMsHwlGRWKl4AS218zsyUtIAx2yU X-Received: by 10.99.109.70 with SMTP id i67mr5928732pgc.190.1518807517844; Fri, 16 Feb 2018 10:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518807517; cv=none; d=google.com; s=arc-20160816; b=P/vlm/tx9komRk/f67RgbrzBbHv7ZyIeicBFdcnyXB+BGsbVq4ui3HtZA1MaiPGZwA yVU1Rn92/IahLS8w1FVMu3jJriSzktHAr0AJWL6WCbZI9PgQDyARbTILvNHYmCRBE9Bt 4dvMMf3dg4itBUW7n6t8Xhy3bdAm/edTAvlCT31AIXLywF4sF/1pty0NndCOu9tDTikL 3WoEDtSTDG9DK81BQkR2QFxQ/pZQ3YhSjU1HUyvbhTpv5oW+WXmp48wgDo3Hg/lBlxsE 8MknWEndTGvj+MtvtBXDZyYcx7R+wYcaSyYNH4scQSiBxabS35wYAqoHQ7OmZv+tMzbW 8/Tg== 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=+KiKt+eVG7a7PBgtVqntz/ph1mcNo9M2Lek4X2JV/1o=; b=i5+qBuZxhfJ2d9R6G5oc3o2puf5SDe7cCth+CMGugqYyBcriQwtXEKtoylliOC6Ljw ydsX0lhqPr+g9va/3/hYfs8wBT2v/E96OXvjmJH46weio2oZMlREZFykdN2vUMIamThu RVbiyRxBGWJnXBx5B9+kkRDDBapzv7iHOc1U/vrEgGrhfnjlU28/CKAVtmc3JQma4icm vcwmfH5i3k1E/cNw+PK8A2GC/t+hvLzRC9IJCyiiqRmfeuxbb0oH5VNWhlN1hsicLooW WN/ZihTeNI4c9F3YHLOGFsmUQi8LSIpYnuk6GdD/rk+uinpfKppYkBEy79kttwaQICH6 HXXg== 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 u123si2364287pgb.16.2018.02.16.10.58.23; Fri, 16 Feb 2018 10:58:37 -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 S933233AbeBPKIk (ORCPT + 99 others); Fri, 16 Feb 2018 05:08:40 -0500 Received: from mout.web.de ([212.227.17.12]:56831 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933129AbeBPKIh (ORCPT ); Fri, 16 Feb 2018 05:08:37 -0500 Received: from [192.168.1.2] ([77.182.211.116]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MFtH8-1ey9ng2KrW-00Ewyw; Fri, 16 Feb 2018 11:08:26 +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_samsung_cf: Delete an error message for a failed memory allocation in pata_s3c_probe() Message-ID: Date: Fri, 16 Feb 2018 11:08:18 +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:+Z4jMm81e+j42T8U+BHczGAqXMwmB+4lyu/Vxiel1O1wyD5GH1q yjixXdQR/96HQDxo/ITyGw2IuOC4rXumY040BeTFkpQQZwB56YsEjItzvBNJo20PkAWbG3C I7tKFJl2/oJz7RwrExqwoZs2aVepZyGF87sXyoL8hRPqcbLpv4Oj401/bpP3RIkYWDBg6qa 7kSjY9x9ejrOx6pNeCHrA== X-UI-Out-Filterresults: notjunk:1;V01:K0:9/XEzPljOqw=:8c2EtUrYOECkL41R42W6XE 0F3qELBMnVgoXezxQsRz92c86DK1r1cUU6A5FF6cEXvEqFm3kEthLgft/5Kl8KsjK2SuFjqOA eacO3nm6wBHAce/vujVMWZSCcW87luGf+skN9Qzv0GcaORvaA6J/y05/2b6zCYIDTc+Wq4nrf apE1qyI6UDF+JyQy/OsrNYZjEYhpIWcG30Rc/4acRGsL8bbWoIXfWajl7gCKqgdUaxJGKhHHH P5ZAFworMLke3e39Vog6cnSHaLY2zUx67V/A7J0DRcny9u+JAu4N0ZnpKocP1X62QuKQAdEoc Iav8G6LODLw6veuPjl+5gG2MOYgEIaS9JIt0y2bbW7VSbs6QCYfpK82hYphVppVL1zaxcasnN QkeK84oAoqxqCWOCuMkzug2IFJfJU/2j0I1itCXMxF2Sz3VQA7xYg/lmKaL2j6SbUYpOSROpF dYNnrGzi4amgzjwxGlVeMlR/ksIZFLPGgKpWbgC/uYweKSjJHwx+ewUh1ySXLm/J0J25PAeIC IRlKPXNYvf4mibOskNC9m9YnK3tIMUEUgYLHcUgHzBVm/4IzsQBzvc5AnHBWSJkX9jjVpghb/ QxIMWYw7zL9sXt/q0X3fyfmPXWaawTlpMjU9RpSxZqE14CMabjsOaUHxN54PChXupSuvevE1g qDR7WC66r9rxxLZ+A+JqiiJLx3TrD8GNXhmEsaslWrjqwhgbYTMwO35DjyhxW2CEsV7RSKt+t tB9zOF78YvkM2QdQy2JNqpXCA2hRq7U5TGzGiAnw6K/LTtFjes5BmuCWb2pPGoyZn5B3wKT1S a6iyKZpcV1EeQTsx6KDC+xhevOXF033CceKjD0op3S/ibw48Hg= 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 10:55:51 +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_samsung_cf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c index 50801c40b029..bb96dc35950d 100644 --- a/drivers/ata/pata_samsung_cf.c +++ b/drivers/ata/pata_samsung_cf.c @@ -505,10 +505,8 @@ static int __init pata_s3c_probe(struct platform_device *pdev) cpu_type = platform_get_device_id(pdev)->driver_data; info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL); - if (!info) { - dev_err(dev, "failed to allocate memory for device data\n"); + if (!info) return -ENOMEM; - } info->irq = platform_get_irq(pdev, 0); -- 2.16.1