[PATCH] ARM: u300: fix return value check in __u300_init_boardpower()

Linus Walleij linus.walleij at linaro.org
Tue Aug 6 06:15:28 EDT 2013

On Thu, Jul 4, 2013 at 3:51 PM, Wei Yongjun <weiyj.lk at gmail.com> wrote:

> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> In case of error, the function syscon_node_to_regmap() 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 at trendmicro.com.cn>

Patch applied.

Linus Walleij

More information about the linux-arm-kernel mailing list