Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5674011imu; Wed, 30 Jan 2019 01:27:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN7NLJlNMZP/ctL58HGaXXp/H5rmXQ5uF3ev3sJKIJ0gCt7Gaxa12AZ9TEAcebGwsFnRUZoJ X-Received: by 2002:a62:b9a:: with SMTP id 26mr30032506pfl.196.1548840466105; Wed, 30 Jan 2019 01:27:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548840466; cv=none; d=google.com; s=arc-20160816; b=XAaPE8iEFCoYOSkV+28Arr8wAgJbYxnRPI9toDMkp2t6FjgxmtusQc06tEbuzTVzAb L9S4S+bqdRhc0+9Q+qXL6u/YnawT9SrvW4qYxc4NrpPzEqGBVKPD4pNSHu+5fUodaj4J p+nQISIzoq9s+p1fRnMikU9/XEH5CyhvG4t+VnQXmBIRuW07fu5SuxCuDeXnQEOl3EFe ImIaaPDVifCSpjQdKQ/8440xsUouK+C4ot1Xw3E2FV2Me3FC1buZB0bxaMGmzxZ3FHxS KlPOO0Rt10wyQvh5L+X3bgIV6lnMyW+w2y7DiPmiRr2V1kPhZWmSztArdBTMUn9btCVz DtUg== 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=TKn5ilO0UWuauC6x6W6CrT52J3N96lIaUyz1qqjeMV0=; b=TLKLwVzUCl3pTJFMgAH7vbknzQPaOr9ATwEdG4YK1EZoFikGCG1MmTxfSg/RxR21Yz tLgqaeS0necXkYMY6yrEBuj8s509G2mCt4MZa68yX9q1a6k9GJRxcjdi8u8wS26I5sDg WBBzvNRaYo8j0wM1E8nDTio6xgozYjISK5ZszDFX6ZZMcpcmZvjVtugioZgRboGRAEsK RfLDpCbqy3UyP9WkEhAb31/k4lR7ku0kyUoAgUp7FgZE0UHM9tkd4D5ry5HfMR87EFs8 Q9TaFulEYxs1qROyoJlT1yZQS9CHL/mMWrZBgupDj4eEcHmBDNp+bxJHfQ4Gg7BagEZ3 f6hg== 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 l5si899581plt.5.2019.01.30.01.27.30; Wed, 30 Jan 2019 01:27:46 -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 S1730331AbfA3J0C (ORCPT + 99 others); Wed, 30 Jan 2019 04:26:02 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:7480 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730286AbfA3J0A (ORCPT ); Wed, 30 Jan 2019 04:26:00 -0500 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 17:26:49 +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 17:26:49 +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 Hi 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. > > 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); Looks good to me: Acked-by: Liang Yang > if (ret) > return -ENOMEM; > >