summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-09-21 11:09:47 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-07 19:39:35 +0400
commitb2be9b06f9f9682943fe274c0d3c07945e623e76 (patch)
treea670e576d12cdaa5d84d35dcff9a87837959d1d7 /drivers/input
parentedbce27e33fe170dc18cd42672cedb3b49613a20 (diff)
downloadlinux-b2be9b06f9f9682943fe274c0d3c07945e623e76.tar.xz
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions