Received: by 10.223.185.116 with SMTP id b49csp1040698wrg; Fri, 16 Feb 2018 11:18:32 -0800 (PST) X-Google-Smtp-Source: AH8x2242HwsjF7uEGzSjwW3gbudhOgtjSIPWFSosz372ks05wl3hzrbDQIZ0iQ3KAtAywbFU7MNb X-Received: by 10.99.157.193 with SMTP id i184mr5841239pgd.197.1518808712329; Fri, 16 Feb 2018 11:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808712; cv=none; d=google.com; s=arc-20160816; b=Wy6uLHRHbKPb/Jn0RAk1XeHjvrpRe3XBmcwyfF0Dv1qRq2RvOUMWu/efTWc3gD4hwJ 9+Yi63la0mOw2DtouSPbDUx0HoX2rHt9QeLKvb/KZe91nnMNlMjdtjGHfJLr4IY6F9Dp 4Ym6uz66o7YrfLjC/domtbjPy/atN3Lp3R+6pw3A+iQ9mG0Y9aAGMTkO+5MmLXJTakrN 7WC9cHsQrDEn9AOR+Ytc9QeZzxBR2gMnGp+6UYoozWyYitDzBP0iGJTAxVFQqbYH3emh q/qqkYaY5shmeJ90cJHL69QPybDJCsTCWWf6Y2C6fVT4hp8/ltcLuAv1GZn6xFhEUrU5 pdlw== 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:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=ANJw7y9TGY1CfeBzgF0FCLs9na8gj7+xiO+x2lzjN6o=; b=h2w0k3QuS9NWj3HE0QYVI3IEGagAOrgTSFK8sGY3vdERCunKlOUi2PhBn0sV6PsW93 byPA9DrxjqEjp81r1JQuGSBv9LsloV5ZOkGKmPKmFRLWk3YrkLY6if1p31rvz/FGEp9+ xXZdi9uAHM1ySdWBFYVukaeamdaGd1b94phcKm507drfw+jAgeGUy+5GSqA5B0vfRzVh wwqFmIOvD+AqQI6LEknc4GEfN2025W16RhmCkmR+YiSGDP+VsHOE7uScCX589+drAsKc 3hLBEQ/3SmxHNE7EBAsGfiVP+zxD91358GFHHNLUP9GVVYCcIXRFsZnSHeZtDpuwbwWh q2vA== 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 64si6725702pgi.67.2018.02.16.11.18.17; Fri, 16 Feb 2018 11:18:32 -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 S1031008AbeBPP5q (ORCPT + 99 others); Fri, 16 Feb 2018 10:57:46 -0500 Received: from mout.web.de ([217.72.192.78]:33185 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030613AbeBPP5o (ORCPT ); Fri, 16 Feb 2018 10:57:44 -0500 Received: from [192.168.1.2] ([77.182.211.116]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MNLS1-1etYwx3BKj-0070e0; Fri, 16 Feb 2018 16:57:34 +0100 Subject: [PATCH 1/3] pata_arasan_cf: Delete an error message for a failed memory allocation in arasan_cf_probe() From: SF Markus Elfring To: linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz , Tejun Heo , Viresh Kumar Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <05b48a33-81ae-b1b1-428c-4a9a0c9a4fe8@users.sourceforge.net> Date: Fri, 16 Feb 2018 16:57:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:4PRvHQI2yQrzzB6WbojX22Ju+MhJ0Vt5eLtYALPJlIeBUjDiFK0 598j8fnnUMgiEDKRqcjFtKvK2d/JzdU0YEa18h68NNqOQvfhYxUTX6edoHtwMxhoNkr8a6x 9qAM5647y6qWNvGqw8MlYoah5ZYDg3G8qKkQGRh9Dsqpcu6irsFfQIKKolGF+6jdp1/AIXQ 1eKVIz6joDYSfTIzg9SbA== X-UI-Out-Filterresults: notjunk:1;V01:K0:00V2dxCnpZo=:Cn7L5SxC99vopeEDycDVUO EVaT281BZNzNbfmjk+zHsgsdt5ixZiDndtKfVSS0d5QqtwqBJE4HG+aBJJa227AYMcMLBCaF6 ePBwpCTUryrTBI+8gFJs/fSexaPVDBtI71MmKayjDpP0rpoAGQd5OQB20Kbj7l2p7qV+785Xt 5Jn+Zcl+SnVqiVGCoAzCWwTaX6VDeh6Fca+0pbPGpjHsQSQmWiArWvsd2S38FRbkdoyBdMVAO Wnk7EbnvaTlYgTuG5vfbVlfVKAp4Vg1g2o2xlkQB0kaxKeeKLFpgw4wnqLfMnxRGg+FLTSUON cgZtxLOyChRgDzmxHRPxVUGBNOZ6eCpthMK7WHsoAI3wGe+ViWqtLNlOSGFFuWrnbdpu9W3eS fSvpB8pZ6Vpp1ypFgJtIbdTOjpY/Sly+F6LMo14E6fDCW1Cs+IGumF0f+i29bbZQLbHeNtJSh JKbVkjx3XIGs34oZfe6ALyCILUwrkFJs7ksYM5ZBXWyyAUqqyGTn+5YG8y0YfDKy5Q0mfh2Nv pfMuDYzys1+vAxjLljMJHUQGbgP78JXOKoksmmsH/8haHrKPO8cDTrvQ2iM3mmlNj8pUe/m16 Hp2gaiTpzFi1CKTVRDpyctZZ5qv9ASuoRBTAcEvt3AIytN1kjw2U64VgQsVZWIhlNvzweBvB+ Yn62zd4YqE3i+RpE99DpZtX/s5Np2QcFD2SIV5O37z5vty47yvEEi/wF0KIhajLQkBEIArh+7 XvdJP/8Jgprhtv9DNme32aY/3bZ9pYtvLrYbLFe1wuneT/vvEdGMCp36F4OcLgBCT007EoaJh jlWlVNPgEJy3Ng9P/TcJgkxNTC7mB0hVRQWEo+Y9lQKDbCAZHM= 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 16:01:12 +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_arasan_cf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index b4d54771c9fe..be5fbcedecbf 100644 --- a/drivers/ata/pata_arasan_cf.c +++ b/drivers/ata/pata_arasan_cf.c @@ -809,10 +809,8 @@ static int arasan_cf_probe(struct platform_device *pdev) } acdev = devm_kzalloc(&pdev->dev, sizeof(*acdev), GFP_KERNEL); - if (!acdev) { - dev_warn(&pdev->dev, "kzalloc fail\n"); + if (!acdev) return -ENOMEM; - } if (pdata) quirk = pdata->quirk; -- 2.16.1