From patchwork Fri Aug 14 11:39:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247701 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp292835ilo; Fri, 14 Aug 2020 04:39:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVqZmvmkQ+9UKnOjaZdLigEpBMWYPXYrMEwGVUMxxMifrsmMw2/jOpl/rE4ttnrptIW3t/ X-Received: by 2002:aa7:c915:: with SMTP id b21mr1835892edt.17.1597405196586; Fri, 14 Aug 2020 04:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597405196; cv=none; d=google.com; s=arc-20160816; b=JsBgJPAhYfqlvRhtp7kYXwVMDpOwskecQ3nHutAyX4z/kym4tQQg7IIm6h2wVE3dx8 0OZwyXm7Tr8vxYU+q0wHsOI89hBdVLNLNLKugso/9J6dDOR8hVN6c1Q527CpqXNkMLvT +0H7vyTd2D8PblZ06AyVVUpHWBhye9efZUpGHwo4z0U5zaRjuJZiBt50qLywNVqz7ol1 l+s5MMbsZvY7s6o86E/K+5nENYx0AchLPTf5ye6/kuXG59PTPcsSlfb/b/WnvqJKhve6 0srOQ7VQbIwVbmknNqbLEaMLQ7HKi43jKmlOOK6NFH9PYuvCTO6R4g9earl2Eq001rih X8dg== 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 :dkim-signature; bh=ZMwswRr+OImQYjmw7l/E8TzYSmNdiYoxWwAodNgtACY=; b=q77POQTgY7kB0nhi7+RfOmASJg1CuHig1mHylRXdqAvOKEWkHPgQlUE5vm/wi+IxDY STKloouc9THNoxbkSo0AMcxDmNadyFSDoGaMoGY21YdAHZycQ8NjXPlrT7uVP+4r02ul VXQuf/8bFMQcLDHyg3xig08JBaQ1psCFzlHpSnRKNKv4RAj1JigFDf6lrxCbsHKpP0K2 1p3HzyLAIa3ja+6F6eoaREmMyBTmoVjqrzayC+CU081i+P4K5ZB1uPfF7dhSnaYWVIej YmVFuhwZDCTkWUiTwXSxnt9IuIZkv/t3QUAbjq4SWrnzW6+gvecW7ApDAwdOMH3kC9zw 8acQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UiyD6Jii; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si5170633edn.431.2020.08.14.04.39.56; Fri, 14 Aug 2020 04:39:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UiyD6Jii; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728137AbgHNLjz (ORCPT + 2 others); Fri, 14 Aug 2020 07:39:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728056AbgHNLjv (ORCPT ); Fri, 14 Aug 2020 07:39:51 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7D16C061384 for ; Fri, 14 Aug 2020 04:39:50 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id r2so8074403wrs.8 for ; Fri, 14 Aug 2020 04:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZMwswRr+OImQYjmw7l/E8TzYSmNdiYoxWwAodNgtACY=; b=UiyD6Jii1LOQLLjARIww/2EHZGil9CEhQQoNcfeOB/w/wxnz8mUJR37gK0yGidtAQQ atVaJI75zk78BsO52FBLhSA5ZTaL2DZn/gDdzbN0e6hCr+OxY0FZjLmXobESjdj2ozmA GLTSmNS2xGD8YZGrjIC38bTfDbkgPVWbXB5zSc3l9KeDKd6+V9Fn51Sp8wQjRycaJz56 aDl2/HkDvx8fJScR7BlJXy3nkrhYCSrXzWgi/+c1MFLYWo93CdGeogbHjR8g0Fhl2Lex sEPn0Jxh6eLFznGJcfcEUBu+6xOzgURZMgbdRQ33lRmhkHa+ZFaOv/649GJr3F4SSLOZ Z7jQ== 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=ZMwswRr+OImQYjmw7l/E8TzYSmNdiYoxWwAodNgtACY=; b=tVG/0wWTu2vKef9em3JQSoHo1U0ijvG2FcQAVQrERIpiBdACIYy0vBBarRO76Izf96 +EloeeiSN+sEBVILdoe+ZRPkrZaCyR3sEJMCQ1jO664Szad1kp6lLAXV/ybGddZDrhaZ OWZh1DLSsQDEa3GzYlAwewXAfvTcNiYPcTv3GqVT/HH/o58o2iQyloHdq/Bi/VyfVCtV iOT3Q+se15zAAzxV7odnGLitOt08v6DI0duh4wwJeWppDL8hcWTvmLo/k0XyIDc01EDa bPvPZabz6/WM98HY9l/Yj4KePg5ECBhuKpAULUntajbxTHp3NC/z+OTfwAeF+g8KQ1zG us4w== X-Gm-Message-State: AOAM5329JESzcGWINaV3ze/URDiKC3PKV3B/gZz/EZBoKjHFRGwTqN3w rN+aROfa3XHgjAmOk1SsEM8LVg== X-Received: by 2002:adf:edc3:: with SMTP id v3mr2355759wro.193.1597405189077; Fri, 14 Aug 2020 04:39:49 -0700 (PDT) Received: from dell.default ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id 32sm16409129wrh.18.2020.08.14.04.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 04:39:48 -0700 (PDT) From: Lee Jones To: davem@davemloft.net, kuba@kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Kalle Valo , Martin Langer , Stefano Brivio , Michael Buesch , van Dyk , Andreas Jaggi , Albert Herranz , linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, netdev@vger.kernel.org Subject: [PATCH 07/30] net: wireless: broadcom: b43: main: Add braces around empty statements Date: Fri, 14 Aug 2020 12:39:10 +0100 Message-Id: <20200814113933.1903438-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200814113933.1903438-1-lee.jones@linaro.org> References: <20200814113933.1903438-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/net/wireless/broadcom/b43/main.c: In function ‘b43_dummy_transmission’: drivers/net/wireless/broadcom/b43/main.c:785:3: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] drivers/net/wireless/broadcom/b43/main.c: In function ‘b43_do_interrupt_thread’: drivers/net/wireless/broadcom/b43/main.c:2017:3: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Martin Langer Cc: Stefano Brivio Cc: Michael Buesch Cc: van Dyk Cc: Andreas Jaggi Cc: Albert Herranz Cc: linux-wireless@vger.kernel.org Cc: b43-dev@lists.infradead.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/broadcom/b43/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/net/wireless/broadcom/b43/main.c b/drivers/net/wireless/broadcom/b43/main.c index a54dd4f7fa54a..2a29fa69f692c 100644 --- a/drivers/net/wireless/broadcom/b43/main.c +++ b/drivers/net/wireless/broadcom/b43/main.c @@ -781,8 +781,9 @@ void b43_dummy_transmission(struct b43_wldev *dev, bool ofdm, bool pa_on) b43_write16(dev, B43_MMIO_XMTSEL, 0x0826); b43_write16(dev, B43_MMIO_TXE0_CTL, 0x0000); - if (!pa_on && phy->type == B43_PHYTYPE_N) + if (!pa_on && phy->type == B43_PHYTYPE_N) { ; /*b43_nphy_pa_override(dev, false) */ + } switch (phy->type) { case B43_PHYTYPE_N: @@ -2013,8 +2014,9 @@ static void b43_do_interrupt_thread(struct b43_wldev *dev) handle_irq_beacon(dev); if (reason & B43_IRQ_PMQ) handle_irq_pmq(dev); - if (reason & B43_IRQ_TXFIFO_FLUSH_OK) + if (reason & B43_IRQ_TXFIFO_FLUSH_OK) { ;/* TODO */ + } if (reason & B43_IRQ_NOISESAMPLE_OK) handle_irq_noise(dev);