[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130222093307.GH2439@intel.com>
Date: Fri, 22 Feb 2013 11:33:07 +0200
From: Mika Westerberg <mika.westerberg@...ux.intel.com>
To: Wei Yongjun <weiyj.lk@...il.com>
Cc: eric.y.miao@...il.com, linux@....linux.org.uk,
haojian.zhuang@...il.com, grant.likely@...retlab.ca,
broonie@...nsource.wolfsonmicro.com, yongjun_wei@...ndmicro.com.cn,
linux-arm-kernel@...ts.infradead.org,
spi-devel-general@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] spi: fix return value check in ce4100_spi_probe()
On Fri, Feb 22, 2013 at 10:52:35AM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
>
> In case of error, the function platform_device_register_full()
> returns ERR_PTR() and never returns NULL. The NULL test in the
> return value check should be replaced with IS_ERR().
>
> Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
Nice catch!
Acked-by: Mika Westerberg <mika.westerberg@...ux.intel.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists