Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp192530imm; Mon, 1 Oct 2018 08:31:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV60DON4M60UTNT7fLEQ/f62RumrKVgtSIYly4llrxqCuOuFUJOCnJizYJiS8RsvTXX9Rvns9 X-Received: by 2002:a65:53c9:: with SMTP id z9-v6mr10607146pgr.203.1538407873639; Mon, 01 Oct 2018 08:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538407873; cv=none; d=google.com; s=arc-20160816; b=TYc6l5J1bRbfHbvKPrziCnRTsaEV+enJzvBqIvrB7g0I10upUja9F+0StisrYY/D6+ LAx4Rr0qMh8J0HsocKWGzf2hBMcUS3EJz6kOWjuF2ro2FSZ4oNDdVDBM0xlPk+thux0u yv9ui4z7SPfC7oRx3jQ8qa5GIZwteIaAydUaaEzy1v8ge5PE9BlEjhBZVHeO2qex0ElI lDbnPsjrIl2MvNLEAf7ks+BE0+XBV4P44oDmjSLFcvZrIpbpprmxMkA6ZIvEpjiFoHrP zrERfXHdqsjFbKKRWDoLmXqpC16mSAsFWdt0pAkvaTsCx5ohcQylaQRJVxKYzbZJxmI7 ASwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature:dkim-signature; bh=a0bcDe7TnkPVEAC4pXGUB7DEmrxgmdFPfUc9t2iEAeI=; b=wv9/IRqj4wYOuSMldYiYG5cSQrl6i1pQxzs+zLldbCIFSkG8I0AjLIb3uJ5SIf/rys kru/12Gl2VsYSniPeVGZPqy+4AgVsBXGna7cGgUL5eGYY5gi8oVAZTCpCONP7nDnyy43 KtuK88MuxpQvEGIH7hx1z5Kzv9IJ8YfKeTy9kC6TRtCUt9wkjBmar/YlpWIEDOsD4XnD ZrAT+wC7P4dqJTChDFDqCnKWGxTAc/cK5nBjcdT8M0jY8qZxnfn58x9PTDOWy/nzHFP9 x0yLIjfIedl1fGMWGhL+gF+YIuwmiIoOLlRk9uJ0UD2A+8pwOxkdlA7MXPddsrffRsqW S1Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=CF4xtYLW; dkim=pass header.i=@codeaurora.org header.s=default header.b=KPRhi46J; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si7389097pgh.338.2018.10.01.08.30.57; Mon, 01 Oct 2018 08:31:13 -0700 (PDT) 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; dkim=pass header.i=@codeaurora.org header.s=default header.b=CF4xtYLW; dkim=pass header.i=@codeaurora.org header.s=default header.b=KPRhi46J; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729587AbeJAWJI (ORCPT + 99 others); Mon, 1 Oct 2018 18:09:08 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:59706 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729480AbeJAWJI (ORCPT ); Mon, 1 Oct 2018 18:09:08 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4102060B7A; Mon, 1 Oct 2018 15:30:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538407847; bh=l8aNZEuWAz07S8+a9rDyS/NsudHkgTiKvvy6/GyJmeA=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=CF4xtYLWy8wNRLpntqmxw7vKC0qtc9rNXq8mrxDVKCcPyTNu+T9Nip7EcEnefTrrW q18malUT/1PuC6zzOtXPwdbpExffKDbJuZVNgBepJT5eN1F+Q4t6F3rdqpw1g/eljg yEOutFpvLjIE+Eay3/PIGV8HC5x8QjqmBw3UYB4s= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MISSING_DATE,MISSING_MID autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-52.elisa-laajakaista.fi [88.114.240.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8689A60265; Mon, 1 Oct 2018 15:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538407846; bh=l8aNZEuWAz07S8+a9rDyS/NsudHkgTiKvvy6/GyJmeA=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=KPRhi46JyaX2vHtzPM+4l+/+03KsrwGirlRrXiZfcRVKDBfilG9AiSMw4aFbxsMdS jSI6OmVpLVFvYpDhO8sDxOppOenZSjVGS2FLuIs0TsOPS78FaIAnG8ag17j7KKnQJZ bGjgfYVS/7eUy+T9+ruej1iMABXu/H/nAJMrw0jo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8689A60265 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ipw2x00: Remove unnecessary parentheses From: Kalle Valo In-Reply-To: <20180920204548.2405-1-natechancellor@gmail.com> References: <20180920204548.2405-1-natechancellor@gmail.com> To: Nathan Chancellor Cc: Stanislav Yakovlev , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20181001153047.4102060B7A@smtp.codeaurora.org> Date: Mon, 1 Oct 2018 15:30:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nathan Chancellor wrote: > Clang warns when multiple pairs of parentheses are used for a single > conditional statement. > > drivers/net/wireless/intel/ipw2x00/ipw2200.c:5655:28: warning: equality > comparison with extraneous parentheses [-Wparentheses-equality] > if ((priv->ieee->iw_mode == IW_MODE_ADHOC)) { > ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ > drivers/net/wireless/intel/ipw2x00/ipw2200.c:5655:28: note: remove > extraneous parentheses around the comparison to silence this warning > if ((priv->ieee->iw_mode == IW_MODE_ADHOC)) { > ~ ^ ~ > drivers/net/wireless/intel/ipw2x00/ipw2200.c:5655:28: note: use '=' to > turn this equality comparison into an assignment > if ((priv->ieee->iw_mode == IW_MODE_ADHOC)) { > ^~ > = > 1 warning generated. > > Link: https://github.com/ClangBuiltLinux/linux/issues/134 > Signed-off-by: Nathan Chancellor Patch applied to wireless-drivers-next.git, thanks. c15ace868dd1 ipw2x00: Remove unnecessary parentheses -- https://patchwork.kernel.org/patch/10608735/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches