summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShivani Bhardwaj <shivanib134@gmail.com>2015-10-16 16:39:57 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 06:06:38 (GMT)
commit258e7af2954fb68b55fe9253560f6dfaa4896e54 (patch)
treee646c802f05c9081f1fc9139288ce845e11d612c
parent15aae23e9e5e98a93cf4d942080d17a6ef07d074 (diff)
downloadlinux-258e7af2954fb68b55fe9253560f6dfaa4896e54.tar.xz
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>
-rw-r--r--drivers/staging/dgap/dgap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index aa3aa72..ca64126 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -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);