]> git.baikalelectronics.ru Git - kernel.git/commit
net/irda: sh_sir: fix return value check in sh_sir_set_baudrate()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 20 Sep 2012 21:13:55 +0000 (21:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2012 17:47:24 +0000 (13:47 -0400)
commit736f739fc21a5c658e0a576f711069e31fb2f877
treee22f582f886455db89bcd9023e0bbdff8b7945f1
parent2ac602b797c01bf16e8848219bafe08f5d6a0cc6
net/irda: sh_sir: fix return value check in sh_sir_set_baudrate()

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/irda/sh_sir.c