Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2935723imm; Mon, 24 Sep 2018 12:32:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV62siBYzPI6+Qg8pwlCiOTSRSsCW2O16ySrYuNGjRyCBTrD7EA7Fav4qpg+GA2b2TzdA13C1 X-Received: by 2002:a63:1566:: with SMTP id 38-v6mr63925pgv.383.1537817568444; Mon, 24 Sep 2018 12:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537817568; cv=none; d=google.com; s=arc-20160816; b=rADbOaOLkhiau6ktu9cbi0M4rCEVrHVAIACh/i2D57bp/87G+OAau4bwesUS+2nkc1 LhH6gxEt18/4xdn9PnsJ8rChhNW4w1aJZ18DlduEnitnYJlMGpgjyD1Sqzl/1pZ0XEEK WrNdRGYcNDWDwbTXU8278bjHBPzY7nKmhKK1Ro/bKiG9shgCBVzu9fyrecp2+YvAYQ57 I5WPf7q8P+2shUbqZ/i0YBboCF4gQGevDg5md0YPFhRA2UfoJEq1S2qhougT5wl8SVZs eimNtBvwlvk/nwPhvYrdgpHoFuuMNoucUY2yfST1d6o+at8YWX7r6WdpMc2va53GhJBQ dT1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=FVjMgUwENdHqDkB5AUXBgYcuysCr6o3N3yY8E95aaR0=; b=AxIoH69KB2F+oA95UT5luXTc+2nNrtlsdRyi/khh2YEeWh/9XmqILeihkZAFDcdag2 6eCaNxGWMkULrObWabMVmLTvd3rjUZ3CEFR+dVjPerAWpAni8MNfR210aZxn0fIsE975 +if3d37g829NMUUseWOtG475MfoWplZq35lGmTgSbsEJj0Ha6CEsoJU3t0LQ2WwTnZXz 1diY6Sivkt1MhX4k7szGzdzwZuYtHVd82pcz0bzLdKZGkm0esDCJdNZZuuPI5seIgGHV iz0d+WQrQpvreOfwtKVgAtvM4h0xEgwjEkDH1HADTjia5PVpw3Gvj74FNnGQvShA4NN+ gMEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="uuMFN/l3"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22-v6si142516pgb.180.2018.09.24.12.32.33; Mon, 24 Sep 2018 12:32:48 -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=@gmail.com header.s=20161025 header.b="uuMFN/l3"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729251AbeIYAYj (ORCPT + 99 others); Mon, 24 Sep 2018 20:24:39 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41438 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728455AbeIYAYj (ORCPT ); Mon, 24 Sep 2018 20:24:39 -0400 Received: by mail-lf1-f67.google.com with SMTP id l26-v6so17584044lfc.8; Mon, 24 Sep 2018 11:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FVjMgUwENdHqDkB5AUXBgYcuysCr6o3N3yY8E95aaR0=; b=uuMFN/l3pVf2U6WY0DgpoD71NJ0GnjSyo4M5+5SSBVpG2EmuslhcLiQO+zp+fGBsG1 DYhnUX3/0X4eVzjJqPzKAT+XBAiJQwaZcePJ5U6ZlvTbNvFrQv7MmMG7lTpGJVbG5GfK 4atVPwomEbFMKPBBz0P9+kGV80/1W0GNVGP/cbPICRRgEbf5zsIVyfNDEW64uhO0xn1d 9VubehwwmoOVKByKZG0A8WlM51srvBdofkyWLwYkmqhDN/aNNxayMC9slSYzpfj8a494 /zQECdjFcNx7HI3OHyYB9GsSBfQl1g1KdhPjS+VJhlXs0DvR60o9eU9sIPOiR0R52w/N /dhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FVjMgUwENdHqDkB5AUXBgYcuysCr6o3N3yY8E95aaR0=; b=Hr7IRGUhc3Yrnl5KmvSMHyh/FTAuJAuWj9fkwbVeXcHuEdHQhiaPf8TKYaJfFxWBiA 75+FQcSGlT6A0Pmfa/YgZ0bxteJqrAF+tiAFhWy61naExHr7Te051J7q96fDLgE3LQip TH1Sacb3xEGifsekeV82QfjFqQAOcpzh6Qd9CmatZtRX5Q9rKy1XlBNw3noE4F4aNh6q I3veeX9J9v/P8EhCa4cnrTGPHjG6/44KVXb5thY5cBwyDrhuIQVogakpGD0zB7SBD8Jx XsGtqbCcZX2sDEpUqnxJ0MWf7XYVOTqVlDJkZ3b87VM1H1h9NyQODLA/lLV8uJAKdW3M UxGQ== X-Gm-Message-State: ABuFfojntdw1PLaIUC69MCrjq6mKKzEHO4PJoRA3P0a1fySIf/VJOKX5 czzzrRFjM18d6bPNVbvGvrFbEb7uWtsrGwxwRSMUYw== X-Received: by 2002:a19:8f57:: with SMTP id r84-v6mr9691lfd.131.1537813271541; Mon, 24 Sep 2018 11:21:11 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:424d:0:0:0:0:0 with HTTP; Mon, 24 Sep 2018 11:21:10 -0700 (PDT) In-Reply-To: <20180920204548.2405-1-natechancellor@gmail.com> References: <20180920204548.2405-1-natechancellor@gmail.com> From: Stanislav Yakovlev Date: Mon, 24 Sep 2018 22:21:10 +0400 Message-ID: Subject: Re: [PATCH] wireless: ipw2x00: Remove unnecessary parentheses To: Nathan Chancellor Cc: Kalle Valo , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/09/2018, 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 > --- > drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Looks fine, thanks! Stanislav.