Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5679833imu; Wed, 30 Jan 2019 01:34:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN7iRcGuS7RTCKnyZJT+/tivwF26FiF+3k0VsO291RNYrmnKD5OJeSLpSZdRyIvVLABKLjC5 X-Received: by 2002:a63:f844:: with SMTP id v4mr26680248pgj.82.1548840882070; Wed, 30 Jan 2019 01:34:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548840882; cv=none; d=google.com; s=arc-20160816; b=b7d8dpKDvma5zEZB8Ux2OS03o7TTGcug+S/tIOzUumHebbJt8y0R4MLfYHAe7hZuon d+424jszZ+hyZJ6EkltQhtev5KGJwsE0v7Qh56gvrJ9vrXz3MFwU4Ivf6aLtju0o5YEb aaDIcjLQ6jL5L5bgzG+9Dz0UZNECYulxB16fbAZ5TfkBgJMZtva4B2y3vkm8+gmqvI1A cYCHaaHsU6EgTCtNmKwUA1wTBG5wJunwGJk0Mo+RnW8/NcwqZOW+dskzyCpbiMy+0MTd sg490ASFPpi9E4yBDmpZWh+FUb7D6byZfvpFNewKwz1W8AC1ZUy7hNRlRlL3zUyICMDh 9QQQ== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=/WUwVboEVeFG9rpHDTPzVTMmyK7jbr73NNWM8EA+JPA=; b=k2dbm27wQ29UvNnMJV0liYwQL/QhDPhIFfwZn6aa+Oouq0woOxZLQ6A7Yp0FVkkBVk 9IB5xDgQiWT4JEggahJvQKODq543QJ8uSUyKSQ0D33C95uks3meLFAjV9N/617oDNN0y PM8vUm+ynGaySx8aHxjbMkcnSSzWI6H4Bgpy/MFnvxal2VqGD8nBkmkOiJvrxDf7MIwo T08Gc/0+wPe6+KzxBn2LQjZxSJN421tdJ/HIzdYzcQx7zWLaElszNcBJcuUTttuXHwnL WLdaynNl/Tac2I6WtNi8d0JrgHXcun5IubcQqO+tnTPUUk/V3a2nxlg7/SfbS9uJPA/1 dJ/w== 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 x8si977872plo.259.2019.01.30.01.34.26; Wed, 30 Jan 2019 01:34:42 -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 S1730261AbfA3Jc4 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 30 Jan 2019 04:32:56 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:47325 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728356AbfA3Jcz (ORCPT ); Wed, 30 Jan 2019 04:32:55 -0500 X-Originating-IP: 90.88.147.226 Received: from xps13 (aaubervilliers-681-1-27-226.w90-88.abo.wanadoo.fr [90.88.147.226]) (Authenticated sender: miquel.raynal@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id A026C40007; Wed, 30 Jan 2019 09:32:51 +0000 (UTC) Date: Wed, 30 Jan 2019 10:32:50 +0100 From: Miquel Raynal To: Liang Yang Cc: Colin King , Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Kevin Hilman , , , , , Subject: Re: [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init Message-ID: <20190130103250.4080a3b3@xps13> In-Reply-To: References: <20190129105757.19138-1-colin.king@canonical.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Liang, Colin, Liang Yang wrote on Wed, 30 Jan 2019 17:26:49 +0800: > 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 This is nand/next material, so if you don't mind I would like to squash the two fixes you sent into the original commit inserting the driver. Thanks, Miquèl