From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751561AbcGNQFo (ORCPT ); Thu, 14 Jul 2016 12:05:44 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33867 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751477AbcGNQFm (ORCPT ); Thu, 14 Jul 2016 12:05:42 -0400 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> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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