[PATCH] netdev: octeon: fix return value check in octeon_mgmt_init_phy()

David Miller davem at davemloft.net
Fri Sep 28 15:18:52 EST 2012


From: Wei Yongjun <weiyj.lk at gmail.com>
Date: Fri, 28 Sep 2012 13:04:21 +0800

> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> 
> In case of error, the function of_phy_connect() returns NULL
> pointer not ERR_PTR(). The IS_ERR() test in the return value
> check should be replaced with NULL test.
> 
> dpatch engine is used to auto generate this patch.
> (https://github.com/weiyj/dpatch)
> 
> Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>

Applied, thanks.


More information about the devicetree-discuss mailing list