From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNj9H-00030o-4Q for linux-mtd@lists.infradead.org; Thu, 14 Jul 2016 16:06:46 +0000 Received: by mail-pa0-x22d.google.com with SMTP id dx3so30096188pab.2 for ; Thu, 14 Jul 2016 09:05:42 -0700 (PDT) Date: Thu, 14 Jul 2016 09:05:39 -0700 From: Brian Norris To: weiyj_lk@163.com Cc: Boris Brezillon , Richard Weinberger , David Woodhouse , "Cooper Jr., Franklin" , Wei Yongjun , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] mtd: nand: omap2: fix return value check in omap_nand_probe() Message-ID: <20160714160539.GB120073@google.com> References: <1468498005-10664-1-git-send-email-weiyj_lk@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1468498005-10664-1-git-send-email-weiyj_lk@163.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Jul 14, 2016 at 12:06:45PM +0000, weiyj_lk@163.com wrote: > From: Wei Yongjun > > In case of error, the function dma_request_chan() returns ERR_PTR() and > never returns NULL. The NULL test in the return value check should be > replaced with IS_ERR(). > > Fixes: aa7abd312c11 ('mtd: nand: omap2: Support parsing dma channel > information from DT') > Signed-off-by: Wei Yongjun Acked-by: Brian Norris Boris, The affected commit is in your pull request, which I might review/pull today. I'll just plan on applying this on top, unless you'd prefer to fixup and resend. Brian