Received: by 10.223.185.116 with SMTP id b49csp3300630wrg; Sun, 18 Feb 2018 19:42:45 -0800 (PST) X-Google-Smtp-Source: AH8x226+QcMSQ3hHyGgsd5+H4C9kXy9HoHeSiKgmbTDoAap+DOfgLWP0zXT4bnfWPPCdYZLnqsC9 X-Received: by 2002:a17:902:7614:: with SMTP id k20-v6mr12965908pll.343.1519011765082; Sun, 18 Feb 2018 19:42:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519011765; cv=none; d=google.com; s=arc-20160816; b=HxrnKszWaWBhv3VUPtoVdarX3+syoMSjHaiiIBT5k/Ass+evQiLA9uZPABjGfE5CEz 7I9H5/5A/tPRbAydl6CjKZBvbZJmA7j0L+/PlB2MPGweryqDoFdu4nSwQWU/EaymbwA7 Zg4D+lu/bVcm5IdfC8lflIucb+54KyX+HvwbT85OAeO023xI8g1/ctqUJWn4ya0g0kU/ KtPMwJ9JKSpk9VhQrcsNW4w9jgOCZKBuM8/oUXHnSV7JLIJMg2RWpDOItsTmBFUpFknL K39ahTwbqM0PHO0rAXJ4VaVOt+09jIAjUKKhb+41fLXcp2NT0oralg6UIaTdR6SIuova wFag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=dqGuvs/5RQlvEkcyMMsfkXY9DyRqfyG4yy84j1W02jo=; b=hnDGC0bP0XieGO/jb6KuQqKJWjdfJafcxiazZKnOn7bysq6gfhj2Fui8vqGpT+KGxy y7+HLWPBqJhl0yYa/Lik9Q1Xve8XZ80T+eK3H00E/6VuMQsGV8DzdZ0GPEMfukG48LKR mfGVFg0W3sFI7/7bxUrw5pCvGmjy2Az6JiYt+LqCotqwSKW652a9woYYyQdoHmjhApty 1LG7z2SamdLzOmZlTQECsDhGFmR0OYIF8AOcoWkFml3r/nTXKN4V446unBnPKKyW+SOr Yj6uUW7GKrtWgNizR57UmOqEN2XXmyLclZ0M3zz/ac2hctMt6HNQ55VrOh4xrCYimq3e 4KtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WsqviQvg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4si7442608pgh.771.2018.02.18.19.42.30; Sun, 18 Feb 2018 19:42:45 -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; dkim=pass header.i=@linaro.org header.s=google header.b=WsqviQvg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751996AbeBSDkd (ORCPT + 99 others); Sun, 18 Feb 2018 22:40:33 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33771 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbeBSDkb (ORCPT ); Sun, 18 Feb 2018 22:40:31 -0500 Received: by mail-pf0-f196.google.com with SMTP id b8so1604435pfh.0 for ; Sun, 18 Feb 2018 19:40:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dqGuvs/5RQlvEkcyMMsfkXY9DyRqfyG4yy84j1W02jo=; b=WsqviQvgPDzOusW/9MEs6hf3NR5Etv0piYxmsm8FFeUJ7YpkpdQCvJnH062GL5G6+S r2ErZC0Qs59Ga6UT25UZ5oEGYtpHSvceBUgZsjCfgbX7mKG1pkqc/9adz4j3xcrb+jjh s0wCGQ4jtNQIgPZV52FQD+PpxRCnghE8QeajM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dqGuvs/5RQlvEkcyMMsfkXY9DyRqfyG4yy84j1W02jo=; b=BWDehg92SG8f/db5UoLSMyyphtX6kEL8eqYwL2BzOwHmNls+xcaRaFi8Lgk22+3dhd ElJfumgc2eMt8snN+0MecKQlGcoz2LP0jIQu2U484TnMvJoY1UhoSWyJ0YQ1MYhAZDJ3 NB8bECsvkFB6mt2/Z+AXciBrRDA4DADPszOQa1EAwY+YH/h9mW+WPaTSwFDkPYcwYSbS EvmnfMS4uWBwWaZpElYsBmdr8a3DVg/sdtLPTNdLHhWlrfMbEi0Y36KKgGpWSNJWeh/n Toxn2g3Fi4vIkj0Ylqs1uAj4pRLvU/WBWx4U/LuqRkbapdNXowiqV5v67dtKp9gfK/qV 26/g== X-Gm-Message-State: APf1xPC2Ph22EMn9J2aCPjK27lREqHPQvU2vIw55uVytJsAie5l/xZkQ IsYDztSIdGpduszzG2EJ6I+Qug== X-Received: by 10.98.32.200 with SMTP id m69mr214084pfj.82.1519011630506; Sun, 18 Feb 2018 19:40:30 -0800 (PST) Received: from localhost ([122.167.232.138]) by smtp.gmail.com with ESMTPSA id b68sm44804891pfg.18.2018.02.18.19.40.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2018 19:40:29 -0800 (PST) Date: Mon, 19 Feb 2018 09:10:28 +0530 From: Viresh Kumar To: SF Markus Elfring Cc: linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz , Tejun Heo , Viresh Kumar , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH 1/3] pata_arasan_cf: Delete an error message for a failed memory allocation in arasan_cf_probe() Message-ID: <20180219034028.GH28462@vireshk-i7> References: <05b48a33-81ae-b1b1-428c-4a9a0c9a4fe8@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <05b48a33-81ae-b1b1-428c-4a9a0c9a4fe8@users.sourceforge.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16-02-18, 16:57, SF Markus Elfring wrote: > 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; Acked-by: Viresh Kumar -- viresh