diff options
author | Johan Hovold <johan@kernel.org> | 2019-01-22 18:22:55 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2019-01-25 10:58:56 +0100 |
commit | 9f1623fdb399e5cf677f042e3bff3beec70376f6 (patch) | |
tree | 671f32859992ebd070feba07e4b267d581746363 /drivers/gnss/sirf.c | |
parent | 4ceda5f654c350faa5b80f89625673a882735a54 (diff) | |
download | lwn-9f1623fdb399e5cf677f042e3bff3beec70376f6.tar.gz lwn-9f1623fdb399e5cf677f042e3bff3beec70376f6.zip |
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/gnss/sirf.c')
-rw-r--r-- | drivers/gnss/sirf.c | 2 |
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; |