The active flag is of type bool so drop the redundant double negation when storing the gpio state.
Signed-off-by: Johan Hovold <[email protected]> --- drivers/gnss/sirf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1

