[PATCH] can: mscan-mpc5xxx: fix return value check in mpc512x_can_get_clock()

Wolfgang Grandegger wg at grandegger.com
Fri Sep 21 17:14:08 EST 2012


On 09/21/2012 09:09 AM, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> 
> In case of error, the function clk_get() returns ERR_PTR()
> and never returns NULL pointer. The NULL test in the error
> handling should be replaced with IS_ERR().
> 
> dpatch engine is used to auto generated this patch.
> (https://github.com/weiyj/dpatch)
> 
> Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>

Acked-by: Wolfgang Grandegger <wg at grandegger.com>

Thanks,

Wolfgang.




More information about the devicetree-discuss mailing list