From: Wei Yongjun Date: Thu, 27 Sep 2012 19:04:21 +0000 (+0000) Subject: netdev: octeon: fix return value check in octeon_mgmt_init_phy() X-Git-Tag: v3.6~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df555b665367f9de6c04826acc482096f17c243d;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed