diff options
author | Shivani Bhardwaj <shivanib134@gmail.com> | 2015-10-16 19:39:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-17 09:06:38 +0300 |
commit | 258e7af2954fb68b55fe9253560f6dfaa4896e54 (patch) | |
tree | e646c802f05c9081f1fc9139288ce845e11d612c /drivers/staging/dgap | |
parent | 15aae23e9e5e98a93cf4d942080d17a6ef07d074 (diff) | |
download | linux-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>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r-- | drivers/staging/dgap/dgap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index aa3aa720724c..ca64126618ed 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); |