summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2019-01-22 18:22:55 +0100
committerJohan Hovold <johan@kernel.org>2019-01-25 10:58:56 +0100
commit9f1623fdb399e5cf677f042e3bff3beec70376f6 (patch)
tree671f32859992ebd070feba07e4b267d581746363 /drivers
parent4ceda5f654c350faa5b80f89625673a882735a54 (diff)
downloadlinux-9f1623fdb399e5cf677f042e3bff3beec70376f6.tar.bz2
gnss: sirf: drop redundant double negation
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gnss/sirf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gnss/sirf.c b/drivers/gnss/sirf.c
index f9a9d00dec98..59cde7e923b8 100644
--- 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;