]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
Staging: dgap: Remove unnecessary test expression
authorShivani Bhardwaj <shivanib134@gmail.com>
Fri, 16 Oct 2015 16:39:57 +0000 (22:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:06:38 +0000 (23:06 -0700)
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>
drivers/staging/dgap/dgap.c

index aa3aa720724cab2425f12456c5262b2b70d9bbcb..ca64126618ed1be00cc66a410aaf2b19bc603045 100644 (file)
@@ -2059,7 +2059,7 @@ out:
                /*
                 * 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);