projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15aae23
)
Staging: dgap: Remove unnecessary test expression
author
Shivani Bhardwaj
<shivanib134@gmail.com>
Fri, 16 Oct 2015 16:39:57 +0000
(22:09 +0530)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/dgap/dgap.c
b/drivers/staging/dgap/dgap.c
index aa3aa720724cab2425f12456c5262b2b70d9bbcb..ca64126618ed1be00cc66a410aaf2b19bc603045 100644
(file)
--- 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);