From: Wei Yongjun Date: Tue, 7 May 2013 02:19:25 +0000 (+0000) Subject: sfc: fix return value check in efx_ptp_probe_channel() X-Git-Tag: v3.10-rc1~34^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=155d940a78fd0761c2d73c5bd95a9dd287d58054;p=pandora-kernel.git sfc: fix return value check in efx_ptp_probe_channel() In case of error, the function ptp_clock_register() 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 Reviewed-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed