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

From: Linus Walleij
Date: Tue Aug 06 2013 - 06:15:34 EST

On Thu, Jul 4, 2013 at 3:51 PM, Wei Yongjun <> wrote:

> From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
> 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@xxxxxxxxxxxxxxxxx>

Patch applied.

Linus Walleij
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at