Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7659822imu; Tue, 22 Jan 2019 09:25:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN7jkRp1ovNsla33dUQQPhgsWpjxJaloyqU5jm/z2mA7XD/lnTUOuZM1OXOL1ziZNBGqvYRg X-Received: by 2002:a65:6684:: with SMTP id b4mr32850277pgw.55.1548177925626; Tue, 22 Jan 2019 09:25:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548177925; cv=none; d=google.com; s=arc-20160816; b=kxOS2pe3WfkkbAf16vChEh6qTNGBrXJj0FmDdeADN+7Qe40eiKRSF09+56n3DbaLO/ qCmQ+sEutnRYtAocqLuZYRXRuiKfaS2SXTeRAwUvz5AOZ+xOwXNkc9ZadQiIiwfvhv9A GTQDPR1xYscH6nOrmOaFkNY/6xYTZn8JDb95jOxSM1118FkUwNGLIo8ukr06N0Vimih7 28DplZu6IHvwICozOLAqgOzQ7vcXWNa7I6zRgLR83agfsDV+NEIYAphumP4lY0ii15ev Kgczeqj2bbXeOiW/O9NYucAHBk8JH1LnX5awxroVFF0m5cIM3EGSRf/2FLC5sZO8elGI ox6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1puWPv7ebnF2FGl/t8rl4XQEbSdSK0TuDtfOV7WuaAc=; b=ACvLYY2hefbfB40C5iopVtdSkh524en2b3oilvArx1TyWj3YjrU9v11HTiOfWNOOOa sh+sdJsVpXcE687wDsrzkr//0b6XAfnEk0gMZifPKoYruN+f4TnkR9pJTQAH1/xIq5aO AQseTtwcGjYFc2z/+N4qw0bg3666jxoFuVEhzGDhhgwgo0HRl049112o5hwIF1nAuBoB ESm4Ywbxy8Oeq/mVaugvla2HMJ8HZgNEGwLOGzSYuL3tmV3XZwMZ1NGc72PaI81XTok4 VAiCUN4K7JZJlv/95jgplDd5GIWIogtbs5SvwA4lzH0x8wylpBxzi9wg2tzZi1RrqqE6 GiEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si10110770pgq.197.2019.01.22.09.25.09; Tue, 22 Jan 2019 09:25:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729666AbfAVRXd (ORCPT + 99 others); Tue, 22 Jan 2019 12:23:33 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42710 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728719AbfAVRXX (ORCPT ); Tue, 22 Jan 2019 12:23:23 -0500 Received: by mail-lf1-f67.google.com with SMTP id l10so18658320lfh.9 for ; Tue, 22 Jan 2019 09:23:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1puWPv7ebnF2FGl/t8rl4XQEbSdSK0TuDtfOV7WuaAc=; b=hHbhHN1YrPDXYbMdazRSH7kTYADSmoxw/vkEd8gyUb3QcuEmo6CwmSj6Qmcnd8LxuC +u0D6+dE46935A42AQfAKCZ5DMDv2x0vLjcbqvcRjh6xFHwam3uWfBYBYCeiXwHsqzgl m0mcdHDFghyC9FrYPCNZOA+R1eByTaB/wKS2OSnGkdCtCbBMh8ZrCfxzjAlsRLvVZLv7 MINqrGgH8W0cgyZ+aYdNLeMYU0Yz/VLCZbQmkCGNda00xUK6WnPotaOmEeOjYzbOQSuH jtl+E8b+QzCyV+5gtEI8PkY7KTLry9iaiWO905hnBunV228FqZCjxmhuxqR4DnUKHiJU Ulgw== X-Gm-Message-State: AJcUukeasqoxpMoOO/MjG1daWCiqNr/ZS1eoaRyCI5hvhuA0Pm9L6cNm aKEZIz/t0hKXqjPn583v1uhsNoig X-Received: by 2002:a19:6f0a:: with SMTP id k10mr20752199lfc.119.1548177800299; Tue, 22 Jan 2019 09:23:20 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id b21sm97735lfi.7.2019.01.22.09.23.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 09:23:18 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1glzlb-0004gN-1Q; Tue, 22 Jan 2019 18:23:15 +0100 From: Johan Hovold To: linux-kernel@vger.kernel.org Cc: Andreas Kemnade , Johan Hovold Subject: [PATCH 3/3] gnss: sirf: drop redundant double negation Date: Tue, 22 Jan 2019 18:22:55 +0100 Message-Id: <20190122172255.17944-4-johan@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190122172255.17944-1-johan@kernel.org> References: <20190122172255.17944-1-johan@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The active flag is of type bool so drop the redundant double negation when storing the gpio state. Signed-off-by: Johan Hovold --- 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