Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp42134imm; Thu, 20 Sep 2018 13:47:07 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda+KcS0KNfOauZD1QSuywPm5NqXXhlPgxWqeOhHUEPNo4jT7HL6LXwckA/tGxW0qmdCLfxN X-Received: by 2002:a63:a619:: with SMTP id t25-v6mr38045895pge.288.1537476427686; Thu, 20 Sep 2018 13:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537476427; cv=none; d=google.com; s=arc-20160816; b=OoQi1pggx2e8hKqrcxW0PT1PqSu/2xtKr/Q+NzZEXHiZS6p9zO4UETWawKYqGjMYsK FO/kjq5RIWlJPee/zQrnh2Aw9kW00GKO14HpWR72wH5ZTPpoyegduHM8ACwTBvOli4QW ckXX1UzxNbVRNwok88FTgamJ+pKmV6i5Fjm6j11qT3iF+2DE7Qp9EA81Z7u0myFGw+cA y9x5EypSk0WgD0uxZyNQmSgbCLNwSThW6sCO7PZ7HPEgG8BrVY+uFi/XID2LyxtURqVm Fbr4ElWiLm2ECM99vgSbtP1W3yxL6f4vLGkOzU+D6S4dW70AiWOE9PrMNSSUvr57Sjo5 OmbQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=7wg3egDLkTXuLTmRbPM21TNn5lPaqSV8GqOsjDMyEWo=; b=LKaAtrc2bnI1keK2u5r6YhQLbx6CYgI1abvODqL89Gj+Gm9BLfdQuE2eVHdbe93QJp 6h36FIcfwmu2IPrpaFSGORfDBKEquKXecttlwzQuCM3tk6uR54fqJ43qgeKfkKq6GiBR zWYzzCnZKxT+PJm1pZe/CRHE21Um+JkttK9Sd7RvekEEr7CB6hNysx11Fx+ADgEyHH6N 9goj4kMwZC3Oj1gj4cZD4wT/BCwGItCegOHVZ2sMCoYoQOanyYq1L8am/g3Relx3qFUb mQRch02h1mNfsndFmoNYxIw17gtsZkE0fTLbC+zfBOssmsBk1jBEDGjRr34b/tf4/iqv 1XeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DqgneG4B; 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 c32-v6si25121420plj.272.2018.09.20.13.46.52; Thu, 20 Sep 2018 13:47:07 -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=DqgneG4B; 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 S2388592AbeIUCb3 (ORCPT + 99 others); Thu, 20 Sep 2018 22:31:29 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39361 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbeIUCb2 (ORCPT ); Thu, 20 Sep 2018 22:31:28 -0400 Received: by mail-wr1-f68.google.com with SMTP id s14-v6so10721937wrw.6; Thu, 20 Sep 2018 13:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7wg3egDLkTXuLTmRbPM21TNn5lPaqSV8GqOsjDMyEWo=; b=DqgneG4Bn0XouVsEzbYhv+noJJFW3n49NIz3oYhw+KdaHY3iGz+Z3x/f3/Fzjadm3S 6qDb4fD/soil0xUMcFiBWklbiovuepqnoL3z5DBqkllN7P6cp6e1lRT9o4ieZVmARHC5 QRoZMsFC9FO6JQgJ1Z5lO52n5g2T2oIE34sC2ZMk21SMeCAXyqSiJi8Bzq3YOP3FArqq G6Tf1ycUzIB10ntWNORuOA6kUFhmKvUz580mC2lAENBVogcN/48ALRrWPl5QCSucagcE TBWTaDOr8bjNTPYSU0bJR5gWykrdqoJk7Fb/zmzfedWf4r0kiXX0zenZ8hZCZkeeg4OU xSAQ== 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:mime-version :content-transfer-encoding; bh=7wg3egDLkTXuLTmRbPM21TNn5lPaqSV8GqOsjDMyEWo=; b=r4QgUUkn0eZvDuwPKrRHO161JPLH7wvLnskfg5exwiZ9/RWKjzL/BdgfnQZdDsqs8J RPaDhVSHL+8vuXVQsTFK8yRcuW0QDqFoJxeUI1IIe0q5rsG0F3Ubk/Ecag+yohYOM34Z /2R6C4LLs5gSyRhOmOqzXcZX6wwQtSHWdcZN3b5DK0CBjzgQZjbvIMnL2uR+9VVkL1sX BBMlpgbeY3R0rc+h9y6UIMcGuikU3e0uk3T0L92mRUSxHADbPdgNpuEtyaMiQOGulGkN Aggk0OAdeaR0CPvcZW1B7YsxX4lRYZUd+RSMVZjePN6Pqm7HfjqtUGKMaIbLfhWaQlO2 e3Yg== X-Gm-Message-State: APzg51CXenK0GUAa6ReYHVNvIRb7ZRGIdL6G3PnWI45viHJkGx+fCQkU C1N//zBxO0pWrG5TuOnmdE8= X-Received: by 2002:a5d:6a0e:: with SMTP id m14-v6mr35696191wru.192.1537476368127; Thu, 20 Sep 2018 13:46:08 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id h206-v6sm3845903wmf.25.2018.09.20.13.46.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 13:46:07 -0700 (PDT) From: Nathan Chancellor To: Stanislav Yakovlev , Kalle Valo Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] wireless: ipw2x00: Remove unnecessary parentheses Date: Thu, 20 Sep 2018 13:45:49 -0700 Message-Id: <20180920204548.2405-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.19.0 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 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(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 9644e7b93645..bbdca13c5a9f 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -5652,7 +5652,7 @@ static void ipw_merge_adhoc_network(struct work_struct *work) } mutex_lock(&priv->mutex); - if ((priv->ieee->iw_mode == IW_MODE_ADHOC)) { + if (priv->ieee->iw_mode == IW_MODE_ADHOC) { IPW_DEBUG_MERGE("remove network %*pE\n", priv->essid_len, priv->essid); ipw_remove_current_network(priv); -- 2.19.0