gnss: sirf: drop redundant double negation
authorJohan Hovold <johan@kernel.org>
Tue, 22 Jan 2019 17:22:55 +0000 (18:22 +0100)
committerJohan 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

index f9a9d00dec9896d11442206c673ae26bb6411c02..59cde7e923b8a60fc3c171769d00738e304421a4 100644 (file)
@@ -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;