From: Johan Hovold Date: Tue, 22 Jan 2019 17:22:55 +0000 (+0100) Subject: gnss: sirf: drop redundant double negation X-Git-Tag: v5.1-rc1~147^2~43^2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9f1623fdb399e5cf677f042e3bff3beec70376f6;p=users%2Fwilly%2Flinux.git 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 --- 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;