Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3339155imu; Sun, 11 Nov 2018 12:43:27 -0800 (PST) X-Google-Smtp-Source: AJdET5d+wjeKpJCbPiNPz+HXjb+kqh+4jADoRtJEThqIWRLbN4cNfKwJ4d4xiMGH9gkBjGmtIMsA X-Received: by 2002:a17:902:3064:: with SMTP id u91-v6mr17312862plb.164.1541969007709; Sun, 11 Nov 2018 12:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541969007; cv=none; d=google.com; s=arc-20160816; b=dld9eca4D0OESrZOqXqSahEEu+bcrtaCS+gpAgA+dtUNYYOhsZg2MD7YCgqekAzWU2 zxgS8XCizypf0UBmZC+AMRKcRB3CcCf6AOlpKWqLlLogtCWvQhhQB8MqfDaZIOvjl3sf 7/vQvcSRJzMwViv4YkZE4m9SCyJUIC8PatCubQd2/I+bn0cINz3hl0jif6yGtd/Fso9i T3q6u5iPP5+0uZMcoDBCFTh2vWBLkNNjpQIN8rsrnQCccA9MNrqeS+B2wWrCwAwWOP4F P9NZFu12zfefA1TMS8VLfKFdvsrTN5AM6vPeDQRjeHmBKTOjyrFW75WgnF/O53lhT9ZG 1cTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=kwJt/jjTvrxns6H4/JN6GH+G+fK0d43STFn7JGBL+Zg=; b=BbJA2ixlGsFUwvtb3P+FsCD1ttAjpbDOxH7MlR2bRO7GWXPi54Ex2zS0YiQnRlMlia hl+lcJwIrC5Yd5gg6PzopCrGhSDyAKxKdiV5Ijd5HuP2mFs21OarycRc1VrK3dPueaVa ISTeNZ7cfqCHBzEr/52Aa4CoSewCEfm2j4nW9KHgivNS30m9YvXlNAd6CHPGXcicKWhn AYkkv3hCVaLeN8TIWb1H6ZszEbymGaudr4IuLHaVpFj/noANxaPpkz+DF2tAwIEMWvjR /tiLv6n25bEK+G763cEBC5Fi81B06ptyB8SRpW+nkNtPGVyi5bOMJNjP80wYHuL5BiBH nKJg== ARC-Authentication-Results: i=1; mx.google.com; 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 z126-v6si16380687pfb.280.2018.11.11.12.43.12; Sun, 11 Nov 2018 12:43:27 -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; 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 S1729888AbeKLFsD (ORCPT + 99 others); Mon, 12 Nov 2018 00:48:03 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49272 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729548AbeKLFsB (ORCPT ); Mon, 12 Nov 2018 00:48:01 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsN-0000l9-NG; Sun, 11 Nov 2018 19:58:31 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsN-0001MP-Hx; Sun, 11 Nov 2018 19:58:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 005/366] staging: rtl8192ee: Fix misleading indentation In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Ben Hutchings Fix the compiler warnings: drivers/staging/rtl8192ee/rtl8192ee/hw.c:524:4: warning: this 'if' clause does not guard... drivers/staging/rtl8192ee/rtl8192ee/hw.c:529:5: warning: this 'if' clause does not guard... drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c:2338:2: warning: this 'else' clause does not guard... by changing the indentation of these statements to match the upstream code in drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c and drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c. These were fixed upstream when the driver was removed from staging and re-added with some clean-ups. Signed-off-by: Ben Hutchings --- --- a/drivers/staging/rtl8192ee/rtl8192ee/hw.c +++ b/drivers/staging/rtl8192ee/rtl8192ee/hw.c @@ -523,17 +523,17 @@ void rtl92ee_set_hw_reg(struct ieee80211 fac = (1 << (fac + 2)); if (fac > 0xf) fac = 0xf; - for (i = 0; i < 4; i++) { + for (i = 0; i < 4; i++) { if ((reg[i] & 0xf0) > (fac << 4)) reg[i] = (reg[i] & 0x0f) | (fac << 4); if ((reg[i] & 0x0f) > fac) reg[i] = (reg[i] & 0xf0) | fac; - rtl_write_byte(rtlpriv, - (REG_AGGLEN_LMT + i), - reg[i]); - } - RT_TRACE(COMP_MLME, DBG_LOUD, - ("Set HW_VAR_AMPDU_FACTOR:%#x\n", fac)); + rtl_write_byte(rtlpriv, + (REG_AGGLEN_LMT + i), + reg[i]); + } + RT_TRACE(COMP_MLME, DBG_LOUD, + ("Set HW_VAR_AMPDU_FACTOR:%#x\n", fac)); } break; } case HW_VAR_AC_PARAM:{ --- a/drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c +++ b/drivers/staging/rtl8192ee/btcoexist/halbtc8821a2ant.c @@ -2339,8 +2339,8 @@ static void halbtc8821a2ant_action_pan_e halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, 0x5aff5aff, 0xffff, 0x3); - if (BTC_WIFI_BW_HT40 == wifi_bw) { - /* fw mechanism */ + if (BTC_WIFI_BW_HT40 == wifi_bw) { + /* fw mechanism */ if ((bt_rssi_state == BTC_RSSI_STATE_HIGH) || (bt_rssi_state == BTC_RSSI_STATE_STAY_HIGH)) ps21a_tdma(btcoexist, NORMAL_EXEC, true, 1);