]> git.baikalelectronics.ru Git - kernel.git/commit
can: mscan-mpc5xxx: fix return value check in mpc512x_can_get_clock()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 21 Sep 2012 07:09:47 +0000 (15:09 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 21 Sep 2012 21:58:48 +0000 (23:58 +0200)
commit0c78e355620689e1b07c81c7dfa63b64b5800bc2
treed496fda833a14cf8221c7fcb71e8e0044accd9c3
parenta7fd193670f7340b0cfc61b34e6f20413ceec8f8
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 <stable@vger.kernel.org>
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/mscan/mpc5xxx_can.c