Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751468AbcKGAaU (ORCPT ); Sun, 6 Nov 2016 19:30:20 -0500 Received: from mleia.com ([178.79.152.223]:43734 "EHLO mail.mleia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbcKGAaS (ORCPT ); Sun, 6 Nov 2016 19:30:18 -0500 Subject: Re: [PATCH 13/22] mtd: nand: lpc32xx: return error code of nand_scan_ident/tail() on error To: Boris Brezillon References: <1478256190-7452-1-git-send-email-yamada.masahiro@socionext.com> <1478256190-7452-14-git-send-email-yamada.masahiro@socionext.com> <20161106192743.00e401ec@bbrezillon> Cc: Masahiro Yamada , linux-mtd@lists.infradead.org, Sylvain Lemieux , linux-kernel@vger.kernel.org, Brian Norris , Richard Weinberger , David Woodhouse , linux-arm-kernel@lists.infradead.org From: Vladimir Zapolskiy Message-ID: Date: Mon, 7 Nov 2016 02:30:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161106192743.00e401ec@bbrezillon> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-49551924 X-CRM114-CacheID: sfid-20161107_003015_603884_82320C65 X-CRM114-Status: GOOD ( 13.93 ) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 685 Lines: 35 Hi Boris, On 11/06/2016 08:27 PM, Boris Brezillon wrote: > On Fri, 4 Nov 2016 19:43:01 +0900 > Masahiro Yamada wrote: > >> The nand_scan_ident/tail() returns an appropriate error value when >> it fails. Use it instead of the fixed error code -ENXIO. >> >> Signed-off-by: Masahiro Yamada >> --- [snip] >> - if (nand_scan_tail(mtd)) { >> - res = -ENXIO; >> + res = nand_scan_tail(mtd); > > You miss > > if (res) > > here. > > No need to resend, I'll fix it when applying the patches. > >> goto err_exit3; >> - } >> nice catch, thank you for noticing and fixing the overlooked bug! -- With best wishes, Vladimir