mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
Staging: dgap: Remove unnecessary test expression
struct bd is already NULL tested so, any further NULL checks should be removed. Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
15aae23e9e
commit
258e7af295
1 changed files with 1 additions and 1 deletions
|
@ -2059,7 +2059,7 @@ static void dgap_poll_tasklet(unsigned long data)
|
||||||
/*
|
/*
|
||||||
* If board is doing interrupts, ACK the interrupt.
|
* If board is doing interrupts, ACK the interrupt.
|
||||||
*/
|
*/
|
||||||
if (bd && bd->intr_running)
|
if (bd->intr_running)
|
||||||
readb(bd->re_map_port + 2);
|
readb(bd->re_map_port + 2);
|
||||||
|
|
||||||
spin_unlock_irqrestore(&bd->bd_lock, lock_flags);
|
spin_unlock_irqrestore(&bd->bd_lock, lock_flags);
|
||||||
|
|
Loading…
Reference in a new issue