lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1509297176.4894.4.camel@gmail.com>
Date:   Sun, 29 Oct 2017 13:12:56 -0400
From:   Kien Ha <kienha9922@...il.com>
To:     linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org
Subject: [PATCH v2] Fix line too long warning

>From dbe17bd47c0e76372a5ca391543dc15ddb35c9dd Mon Sep 17 00:00:00 2001
From: Kien Ha <kienha9922@...il.com>
Date: Fri, 27 Oct 2017 14:07:55 -0400
Subject: [PATCH v2] Fix line too long warning

Signed-off-by: Kien Ha <kienha9922@...il.com>
---
 drivers/staging/rtlwifi/base.c | 25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)

diff --git a/drivers/staging/rtlwifi/base.c b/drivers/staging/rtlwifi/base.c
index b88b0e8edd3d..fdd1ab1e38c5 100644
--- a/drivers/staging/rtlwifi/base.c
+++ b/drivers/staging/rtlwifi/base.c
@@ -1273,23 +1273,14 @@ void rtl_get_tcb_desc(struct ieee80211_hw *hw,
 			 * and N rate will all be controlled by FW
 			 * when tcb_desc->use_driver_rate = false
 			 */
-			if (sta && sta->vht_cap.vht_supported) {
-				tcb_desc->hw_rate =
-				_rtl_get_vht_highest_n_rate(hw, sta);
-			} else {
-				if (sta && (sta->ht_cap.ht_supported)) {
-					tcb_desc->hw_rate =
-					    _rtl_get_highest_n_rate(hw, sta);
-				} else {
-					if (rtlmac->mode == WIRELESS_MODE_B) {
-						tcb_desc->hw_rate =
-						    rtlpriv->cfg->maps[RTL_RC_CCK_RATE11M];
-					} else {
-						tcb_desc->hw_rate =
-						    rtlpriv->cfg->maps[RTL_RC_OFDM_RATE54M];
-					}
-				}
-			}
+			tcb_desc->hw_rate =
+				sta && sta->vht_cap.vht_supported ?
+					rtl_get_vht_highest_n_rate(hw, sta) :
+				sta && sta->ht_cap.ht_supported ?
+					_rtl_get_highest_n_rate(hw, sta) :
+				rtlmac->mode == WIRELESS_MODE_B ?
+					rtlpriv->cfg->maps[RTL_RC_CCK_RATE11M] :
+					rtlpriv->cfg->maps[RTL_RC_OFDM_RATE54M];
 		}
 
 		if (is_multicast_ether_addr(hdr->addr1))
-- 
2.14.3

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ