Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5497561imu; Tue, 29 Jan 2019 21:35:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN6jrX5co1LvSfivSn0t6RVWU5RxmdPL0gXmuhyfo3g32wW5kBwjiMthPPHbkkKaCYEsgv63 X-Received: by 2002:a62:34c6:: with SMTP id b189mr29859948pfa.229.1548826531804; Tue, 29 Jan 2019 21:35:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548826531; cv=none; d=google.com; s=arc-20160816; b=dJi3sru7LG1uZdk2oxvnw6td8L7O2TfzUTHOHeVH01MNCKyX/AqE2LbAiI1ktlnrZm Vy6fHc4VT2tPPZpBVufsUSC7mKyQWCrcgCPMySaMybghg0FUqdRBsTW4jBL7N47jFwQ1 td6Y0OpDqCTVoOWalWg3TFqMMtTiUcvKmzn0J75DcM8Xu9srvUwyjoHIbiXfaF5H83mM RtArIAcOEPkpqxBBnjxm2p/1251w6aPkzAra2QtdfBNvb1mXXfswYEUAWTjbtqXfRURg m2DB6c0iRSZA9uOtbjYCwhUJC7BBqQ5cFn4FCgNke+aUIVkny92ET2V2uG/Z5iD700io e+vQ== 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:from:references:cc:to:subject; bh=fXu2UL+5xUgFu6DvT2Pcqfcdi4EVPDj1jUxvNQI83SQ=; b=LGihNIxh8oAFmIPQAqfiru4AGGZxRzdzPYvGdfMWzwrGnZLdjacREULgewOVx0B954 tx2frNAQGjo9G/d2s7uX1KXwKX7mD+TZf55Q17OoaywAlAS+CtQ3OH/6j3Uju/QQ9nR/ uOzGynajqsu/PMpV9cK0+5mH7ZvLaX0hCMFax8bpf1pc6lOMelkjPpOrcWe4k65uiYim QdDBGsBTIwgEZVoYRuQee/HZWJqooXhWiv9uYhtnpQOKOW3/HsjddPvjvwzNAIt0L77D 8BkavR3f20ondC8K/d3AQfv+pI7FwuuiAP/InECcXnOUih8gpOBQUbXebBgP0iJLsawv b1mg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19si586542plp.151.2019.01.29.21.35.14; Tue, 29 Jan 2019 21:35:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726426AbfA3FfI (ORCPT + 99 others); Wed, 30 Jan 2019 00:35:08 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:18584 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbfA3FfI (ORCPT ); Wed, 30 Jan 2019 00:35:08 -0500 X-Greylist: delayed 902 seconds by postgrey-1.27 at vger.kernel.org; Wed, 30 Jan 2019 00:35:07 EST Received: from [10.28.18.236] (10.28.18.236) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Wed, 30 Jan 2019 13:20:42 +0800 Subject: Re: [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init To: Colin King , Boris Brezillon , Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Kevin Hilman , , , CC: , References: <20190129105757.19138-1-colin.king@canonical.com> From: Liang Yang Message-ID: Date: Wed, 30 Jan 2019 13:20:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190129105757.19138-1-colin.king@canonical.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.28.18.236] X-ClientProxiedBy: mail-sz.amlogic.com (10.28.11.5) To mail-sz.amlogic.com (10.28.11.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Colin, On 2019/1/29 18:57, Colin King wrote: > From: Colin Ian King > > The call to meson_chip_buffer_init is not assigning ret, however, ret > is being checked for failure. Fix this by adding in the missing assignment. > ok. thanks for your time. > Fixes: 2d570b34b41a ("mtd: rawnand: meson: add support for Amlogic NAND flash controller") > Signed-off-by: Colin Ian King > --- > drivers/mtd/nand/raw/meson_nand.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/nand/raw/meson_nand.c b/drivers/mtd/nand/raw/meson_nand.c > index e858d58d97b0..b9c543d1054c 100644 > --- a/drivers/mtd/nand/raw/meson_nand.c > +++ b/drivers/mtd/nand/raw/meson_nand.c > @@ -1206,7 +1206,7 @@ static int meson_nand_attach_chip(struct nand_chip *nand) > dev_err(nfc->dev, "16bits bus width not supported"); > return -EINVAL; > } > - meson_chip_buffer_init(nand); > + ret = meson_chip_buffer_init(nand); > if (ret) > return -ENOMEM; > >