From: Wei Yongjun Date: Fri, 21 Sep 2012 07:09:47 +0000 (+0800) Subject: can: mscan-mpc5xxx: fix return value check in mpc512x_can_get_clock() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f61bd0585dfc7d99db4936d7467de4ca8e2f7ea0;p=pandora-kernel.git can: mscan-mpc5xxx: fix return value check in mpc512x_can_get_clock() 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) Cc: stable Signed-off-by: Wei Yongjun Acked-by: Wolfgang Grandegger Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed