Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1938684ybv; Fri, 14 Feb 2020 08:32:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxt7zDSkVil+CEU0I9e4nedPbj62yAMSTmU5Rke+iJe79HFDq+AdggWJLl9M4KNXUNn1RXu X-Received: by 2002:a05:6808:611:: with SMTP id y17mr2368171oih.146.1581697978019; Fri, 14 Feb 2020 08:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581697978; cv=none; d=google.com; s=arc-20160816; b=xJVLH7+sR7krDyyUM4RuzO+4lIEWfscB3gxz/IdlGVpub+SxVLx3fbnZM+5OTqgmsJ JhWyCDDFfGY/BgT8FnrpgAGiGlkDDfTXAn0TuEmVz+N4VZsg6nU52qS9YBs8YJwqjtde iXk5NXuI9sJNK/d25qiERqfbXCbV03Cps1NOU4kV2rEybgnDsXWKnqllNdH3C5UCXFOy uVxCxZor1IWji9rq5L89lVrucCaaVHGDPjyTm65NyjSSoIzruXUwqu6gDMXTF8j0/KrT y7k/g/6zT+8b11xoVhulEGKFUKus1nJIlNE+eSN9vn8kqW8isczmD9x0bVmJYWJpApg1 FrLQ== 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=zqoQ2dVUWliOcAmisyzj755tE1Qp5eyq7PHqtC8I77U=; b=fJd/8V0Y0+s4amSSwSpEHQTsaikO9pg7bZDhG/gjtjkevtDhY852LJYjvOlvbVSVCg hANUDcs8HM7t+TU+lPhgoOMYuXt7SdBvvTo9MaswodzF4YxMeJDsoX1gDAMvAndhxOwt EYb9JXLvECZKdNiGk8Fr0oQ37rMQTdYuNtf0vn2EymdrVdCtz1xWIJ13Ep2qWITQI+dH /iIdIHHY42sF+NPGcoKGvQMeJLr4qsK3Hm1/jxhe9xVtsaxn1J8YrAb/Rt7p6WJNd60N MBYdG8gLYjMCr/F4F560hjUYXmEOBsrnlveLQs/jWJF3GRwgxroPmyft+Iu9VveqT7zA zNuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KXhRKrvI; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i19si3127481oik.272.2020.02.14.08.32.45; Fri, 14 Feb 2020 08:32:58 -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=KXhRKrvI; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406258AbgBNQZ6 (ORCPT + 99 others); Fri, 14 Feb 2020 11:25:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:60390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405727AbgBNQXv (ORCPT ); Fri, 14 Feb 2020 11:23:51 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 33F7424779; Fri, 14 Feb 2020 16:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697430; bh=8uQNylXb2cMPa/IAvoG1yr4KCjozPlMUbaqb0vdw3D8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KXhRKrvInW9bPdXN7UKZYr1SM6FcOGCQJ5bfq+T7KNcbfYtQ37PwNvylPrNTV7UUQ 2qEJA3zAW6uMoVmaUCuZbwgagUEH7cgXpOjW8VXGt1pTP/XoHAtbt9vomD2IFWTRFU ckKQiICchviGyN2NTUrX9C1lw2oYEKPJHEiVdir8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nathan Chancellor , Nick Desaulniers , Kalle Valo , Sasha Levin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH AUTOSEL 4.9 118/141] hostap: Adjust indentation in prism2_hostapd_add_sta Date: Fri, 14 Feb 2020 11:20:58 -0500 Message-Id: <20200214162122.19794-118-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 c995ace153ee6..30171d4c47187 100644 --- a/drivers/net/wireless/intersil/hostap/hostap_ap.c +++ b/drivers/net/wireless/intersil/hostap/hostap_ap.c @@ -2570,7 +2570,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