]> git.baikalelectronics.ru Git - kernel.git/commit
netdev: octeon: fix return value check in octeon_mgmt_init_phy()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 27 Sep 2012 19:04:21 +0000 (19:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2012 05:18:32 +0000 (01:18 -0400)
commit089fb3efbc9d320d79d9e632af40791e553a9ea9
treea7ddfe21f30e9b0f99da71425e9e6aeef430aa33
parenta34862b759ad0ccd6db5d032bd54f4a5972181ac
netdev: octeon: fix return value check in octeon_mgmt_init_phy()

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@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/octeon/octeon_mgmt.c