]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: fix return value check in stmmac_open_ext_timer()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 20 Sep 2012 21:06:10 +0000 (21:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2012 17:47:24 +0000 (13:47 -0400)
commit2ac602b797c01bf16e8848219bafe08f5d6a0cc6
tree3ae0f598217e303a3b10b25fccb904547fb46ba1
parent4ff52e32897a0c423fd157c9706aafa720e5c1d9
stmmac: fix return value check in stmmac_open_ext_timer()

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_timer.c