]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 17 Oct 2012 02:48:41 +0000 (03:48 +0100)
commit320c688c8963c531f4c6228f326d65f1b9aad866
treed478d0aad08c076d2bc6dcc2021ef9c5e10ce5d8
parentcd2e82d4af8f6ac20b082aedb1bed3a25a74017f
can: mscan-mpc5xxx: fix return value check in mpc512x_can_get_clock()

commit f61bd0585dfc7d99db4936d7467de4ca8e2f7ea0 upstream.

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)

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/can/mscan/mpc5xxx_can.c