Searched hist:f61bd058 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/can/mscan/ |
H A D | mpc5xxx_can.c | f61bd058 Fri Sep 21 02:09:47 CDT 2012 Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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> f61bd058 Fri Sep 21 02:09:47 CDT 2012 Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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>
|