Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 258e7af2 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Greg Kroah-Hartman
Browse files

Staging: dgap: Remove unnecessary test expression



struct bd is already NULL tested so, any further NULL checks should be
removed.

Signed-off-by: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 15aae23e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);