Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4514947imu; Tue, 29 Jan 2019 02:59:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN7VFly27hh0hfAO0VQZo1npEbubncjFFWEaG/tBFgoRr2mdgYTRGZbo9uJaDEpBH83/2MjR X-Received: by 2002:a17:902:15a8:: with SMTP id m37mr25767405pla.129.1548759559008; Tue, 29 Jan 2019 02:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548759558; cv=none; d=google.com; s=arc-20160816; b=hjnFHOOxKy612/+1Bc3LgVC0PNKroOyhMPJ9NszyOzwDTohlwcwK+PjfkRsyg8apbP oPW9LGsT5gsHmiO/yzSzIZ9p5eyNwzla7WV80pItwqXBbdodX99pqolzNpURXYyJn9jM O1N6qPAf4stP0uJFFoaDkIb5aySiaka8s4Pl5x/QFASBLDEXTWJBcX/ZeE7jcAolUVtq PF7KmSjtZqLreXtQys9R1oe/Ed1ByRJ21gTNSXZ6VmO7TkMeEV4V4M6YzLpLiif228AG wdRL3FkK4t96MXr/vpBmQ/9vULo8UGXnbz2Ph5eHm6tlHKq2862UXFr9Ka1d4yxLfo8l 4syw== 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 :message-id:date:subject:cc:to:from; bh=3pThel4hC0lkadeOiqI1Jw/DV6Y6yqR3KGiK+cHv4LM=; b=0B8p79TgtqiVx3YnLwOyVGGozm5BJLQYEcHownmlutMIFZDFGnstLoGp/ztyJEXhxj F23PalyinCWUiUTKEHswCPzliSidKeh6672LoZAA25Yd7ZIZG6IRQOIxy/wA8BXbTG7R 2fr313B94DP3H+QsYs9A8JijGKjnGvt7QcWw3GQxEj8VdNER4pS3wXp1tQGrP/cFDiug M0N3/TtnII+6j/ZI/zsIsxOPW+gcPXRLIvk24aT5EONbnvXu6CtqRYR9e/NDXfWFfsW/ iGdxG2ySlP30eaNwbNy6NA1DJ1nsFgMByVHKMtMaaQxLTqR41S8B2pzRDwhy1IQvMFKE K3kQ== 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=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si8890821plb.35.2019.01.29.02.59.03; Tue, 29 Jan 2019 02:59:18 -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=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728366AbfA2K6Q (ORCPT + 99 others); Tue, 29 Jan 2019 05:58:16 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:48322 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbfA2K6Q (ORCPT ); Tue, 29 Jan 2019 05:58:16 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1goR5a-0007Ug-Ax; Tue, 29 Jan 2019 10:57:58 +0000 From: Colin King To: Liang Yang , Boris Brezillon , Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Kevin Hilman , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init Date: Tue, 29 Jan 2019 10:57:57 +0000 Message-Id: <20190129105757.19138-1-colin.king@canonical.com> X-Mailer: git-send-email 2.19.1 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 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); if (ret) return -ENOMEM; -- 2.19.1