提交 258e7af2 编写于 作者: S Shivani Bhardwaj 提交者: Greg Kroah-Hartman

Staging: dgap: Remove unnecessary test expression

struct bd is already NULL tested so, any further NULL checks should be
removed.
Signed-off-by: NShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 15aae23e
......@@ -2059,7 +2059,7 @@ static void dgap_poll_tasklet(unsigned long data)
/*
* If board is doing interrupts, ACK the interrupt.
*/
if (bd && bd->intr_running)
if (bd->intr_running)
readb(bd->re_map_port + 2);
spin_unlock_irqrestore(&bd->bd_lock, lock_flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册