From patchwork Fri Jun 1 02:14:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varsha Rao X-Patchwork-Id: 10442401 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F0B58601C3 for ; Fri, 1 Jun 2018 02:14:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7371291EE for ; Fri, 1 Jun 2018 02:14:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBEAD291F4; Fri, 1 Jun 2018 02:14:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92442291EE for ; Fri, 1 Jun 2018 02:14:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750881AbeFACOi (ORCPT ); Thu, 31 May 2018 22:14:38 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:40066 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750711AbeFACOg (ORCPT ); Thu, 31 May 2018 22:14:36 -0400 Received: by mail-pl0-f68.google.com with SMTP id t12-v6so14359117plo.7; Thu, 31 May 2018 19:14:36 -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; bh=V/Ijp7HahGXAHIUS9LJ4rzmX3Z3+ux5SyLb9CV4O++8=; b=J0rxHfQexGkBbo2PD9rjIzJ0j8yxVBcDo+BM/D2OqPGr/5IF/OmjgddE9nWSyVUzmV /snYcxUFI517I6fE1EUdlL3AgC5S/EToqPb1OATc0+i/2sak4XDHXZ5QkW4OVGnVwLdA rOa5sIdoXBq0hymWbklcgwkK9RAgOj3Z2H0DvXJecNdXOcIdrMmb6Ve6b7Xe092HEO5b NLuedJ+ZoAPGtDV5frmAv+/xKb8N++rCYGCdI5+r6GzWdQBNOv5ti3OeUUz8czWXgDgM caXrDcKn9w8xCZRKtsb4khxMECwlLTlT16Jz+lsuY+ZeNheTNdDYGu6RdUb92VkW6Nkj N/FQ== 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; bh=V/Ijp7HahGXAHIUS9LJ4rzmX3Z3+ux5SyLb9CV4O++8=; b=hSYKwQh8DSesfPQX0H48uZe+meW2KjXyphno++MkIHDc2lNdcewQ55fjNHyvmCpRmR 9q1Bouws6Ymqp7FeIMxFjpCbsnQN+KyRwI3/Hs3jjdCz9Nxxmr2iuK/dxjLSbIoXVCYa DrV9yT8Ciw2BEz+fW6S7fdrxbWP1rRz+BzXajmvTSMn0eGpfgXUFBsTxpF/q8ThGnOVC OURBsoTUAdodYKo1cwv6r6HyoqEXBxRe35ypyujnbP2nqNyIqEv0jFq0zhlXsUVkN6/y vDnuIfpSxjOhRIfnozeoGTupbPC/2y7N5mtYl3RXgabiRZdTNZJIRnulW7paEChvFBMN Sjhw== X-Gm-Message-State: ALKqPwfrbdUHFekwdIJUgnw/qkl7oa5quRR00AnlsPDLSS606SCZnxlV d/F5DjiGGwntDHDycEfsWb+sNuu1 X-Google-Smtp-Source: ADUXVKKH1tClCc2zZeN6lr60vKu2k6wcL/9fQ5kNgHX6w8pbVA90MesBjz7hbeURjDBrIDFivWqoLQ== X-Received: by 2002:a17:902:c81:: with SMTP id 1-v6mr9205750plt.126.1527819276217; Thu, 31 May 2018 19:14:36 -0700 (PDT) Received: from localhost.localdomain ([103.62.69.82]) by smtp.googlemail.com with ESMTPSA id b84-v6sm35557764pfm.123.2018.05.31.19.14.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 19:14:35 -0700 (PDT) From: Varsha Rao To: Nicholas Mc Guire , Lukas Bulwahn , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , Kalle Valo , "David S. Miller" , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Varsha Rao Subject: [PATCH] net: wireless: brcmsmac: Remove unnecessary parentheses Date: Fri, 1 Jun 2018 07:44:12 +0530 Message-Id: <20180601021413.4031-1-rvarsha016@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the clang warning of extraneous parentheses, with the following coccinelle script. @@ identifier i; expression e; statement s; @@ if ( -(i == e) +i == e ) s Suggested-by: Lukas Bulwahn Signed-off-by: Varsha Rao --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c index 3a13d176b221..35e3b101e5cf 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c @@ -159,7 +159,7 @@ u16 read_radio_reg(struct brcms_phy *pi, u16 addr) { u16 data; - if ((addr == RADIO_IDCODE)) + if (addr == RADIO_IDCODE) return 0xffff; switch (pi->pubpi.phy_type) {