projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ceda5f
)
gnss: sirf: drop redundant double negation
author
Johan Hovold
<johan@kernel.org>
Tue, 22 Jan 2019 17:22:55 +0000
(18:22 +0100)
committer
Johan Hovold
<johan@kernel.org>
Fri, 25 Jan 2019 09:58:56 +0000
(10:58 +0100)
The active flag is of type bool so drop the redundant double negation
when storing the gpio state.
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/gnss/sirf.c
patch
|
blob
|
history
diff --git
a/drivers/gnss/sirf.c
b/drivers/gnss/sirf.c
index f9a9d00dec9896d11442206c673ae26bb6411c02..59cde7e923b8a60fc3c171769d00738e304421a4 100644
(file)
--- a/
drivers/gnss/sirf.c
+++ b/
drivers/gnss/sirf.c
@@
-125,7
+125,7
@@
static irqreturn_t sirf_wakeup_handler(int irq, void *dev_id)
if (ret < 0)
goto out;
- data->active =
!!
ret;
+ data->active = ret;
wake_up_interruptible(&data->power_wait);
out:
return IRQ_HANDLED;