Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1634760ybv; Fri, 21 Feb 2020 00:42:37 -0800 (PST) X-Google-Smtp-Source: APXvYqw2duGPP/AWPeubseKR8XvH8a7AFh1ugHvqiOjHdvr3bt1noYGd9Mr8UecA1eJ02eKyoe2F X-Received: by 2002:aca:be57:: with SMTP id o84mr1094665oif.138.1582274557270; Fri, 21 Feb 2020 00:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582274557; cv=none; d=google.com; s=arc-20160816; b=fVWQ1/UxSju3rHPOKwMq75PZxLkVenIahRG8H6OI+RMaBUuC/RPAyuz+3sN0kIyk5w 3PMr0EarKCNAPuaWL/A+K2jNwojlVdLu2H5d2se7uIIYbgOKFgUgKyy+fWkYxX0CuT5+ r0+yvogED+Je/qX+Q/bEbe77YdFdOdlQM6lg0/ZyKKMz5eBLuqGaznxRiSvXvP34SkzB yWhBHLZjFqlI0LfniLQfdafEn3MN/2GTx22ER3xP3yE9ErRD088pw8XVwoz/sY78INVW Ep1r0zQhfO3RyiWiGfqZgj3RuP/6E6mStkj82esU24tFfxNieDI/crpTQvB4bBA7ORV1 QS3w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=P2UFlqKfPkrtbZHVB3WcX/OLrIXOJdibH/Z4KAFvNCU=; b=RxySO+Q4jtacQJZQeW+mb0NhBqSQ7nW6z7ZG9T1jbIVcs5Xsi9qABhjg++NjRg7tB+ mnBQWx/I2GXxPWHxh+q1ZrtMlBnUQM02Uz+u14uOxAQ4blGvaWNrPdKhCt35XMTpgIbo 83LY0ZTJxc/crb1kwFXRTeqRL0Frt2yoLXLySZ/aFJo8mkMoFH1bDvFoVMru00WJgUFQ amjVuoVMj9hybkO0eCIOJypCxXuXZWchd9dAYwDMoqIXFWzkmeiXlrHYT/mKyIPBV9+z TTtv4jaP/DXAvQFILsRYGfbPMmf2yto/WELe6s+VNulS/Ji72Mv3U9/vd/hzVZw3LTxT LFCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QBFziBgG; 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 c22si1071387otr.97.2020.02.21.00.42.25; Fri, 21 Feb 2020 00:42:37 -0800 (PST) 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=@kernel.org header.s=default header.b=QBFziBgG; 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 S1731280AbgBUIkq (ORCPT + 99 others); Fri, 21 Feb 2020 03:40:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:58482 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730355AbgBUH6i (ORCPT ); Fri, 21 Feb 2020 02:58:38 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66BEA2073A; Fri, 21 Feb 2020 07:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271917; bh=Ryr712IRyEGx3V2UFQBgJGfJ7BJcj/Aea1W03uMesHg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QBFziBgGaC3wlJVyHdZVAZCrUWEP1aIItfd9zAJbcm8W1p6U0EAUXvVTNYtCxNAix al97iqkIEYSTWd0Ao0INozYmk6Yi37bvIT4fH0WOWNMgRAhC0KPqFg+ZPLbbDU+hp6 KZP9NGM45NgDEpkWjOd9C6YWVJOlvHi0uLZgFklk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Kalle Valo , Sasha Levin Subject: [PATCH 5.5 346/399] hostap: Adjust indentation in prism2_hostapd_add_sta Date: Fri, 21 Feb 2020 08:41:11 +0100 Message-Id: <20200221072434.377479482@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit b61156fba74f659d0bc2de8f2dbf5bad9f4b8faf ] Clang warns: ../drivers/net/wireless/intersil/hostap/hostap_ap.c:2511:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] if (sta->tx_supp_rates & WLAN_RATE_5M5) ^ ../drivers/net/wireless/intersil/hostap/hostap_ap.c:2509:2: note: previous statement is here if (sta->tx_supp_rates & WLAN_RATE_2M) ^ 1 warning generated. This warning occurs because there is a space before the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns. Fixes: ff1d2767d5a4 ("Add HostAP wireless driver.") Link: https://github.com/ClangBuiltLinux/linux/issues/813 Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/intersil/hostap/hostap_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intersil/hostap/hostap_ap.c b/drivers/net/wireless/intersil/hostap/hostap_ap.c index 0094b1d2b5770..3ec46f48cfde1 100644 --- a/drivers/net/wireless/intersil/hostap/hostap_ap.c +++ b/drivers/net/wireless/intersil/hostap/hostap_ap.c @@ -2508,7 +2508,7 @@ static int prism2_hostapd_add_sta(struct ap_data *ap, sta->supported_rates[0] = 2; if (sta->tx_supp_rates & WLAN_RATE_2M) sta->supported_rates[1] = 4; - if (sta->tx_supp_rates & WLAN_RATE_5M5) + if (sta->tx_supp_rates & WLAN_RATE_5M5) sta->supported_rates[2] = 11; if (sta->tx_supp_rates & WLAN_RATE_11M) sta->supported_rates[3] = 22; -- 2.20.1