* [PATCH 1/2] staging: rtl8192e: Remove unneeded braces from single line if statement
@ 2024-02-23 17:58 Jonathan Bergh
2024-02-23 17:58 ` [PATCH 2/2] staging: rtl8192e: Include blank line after variable declarations Jonathan Bergh
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Bergh @ 2024-02-23 17:58 UTC (permalink / raw)
To: gregkh; +Cc: dan.carpenter, linux-kernel, Jonathan Bergh
This patch does the following things:
- removes braces from single line conditional (if) statement in
accordance with kernel coding style
Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com>
---
drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c
index 6d0912f90198..49b882c363bf 100644
--- a/drivers/staging/rtl8192e/rtl819x_HTProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c
@@ -480,9 +480,9 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
}
ht_info->current_mpdu_density = pPeerHTCap->MPDUDensity;
- if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K) {
+ if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K)
ht_info->current_ampdu_enable = false;
- }
+
ht_info->cur_rx_reorder_enable = 1;
if (pPeerHTCap->MCS[0] == 0)
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] staging: rtl8192e: Include blank line after variable declarations
2024-02-23 17:58 [PATCH 1/2] staging: rtl8192e: Remove unneeded braces from single line if statement Jonathan Bergh
@ 2024-02-23 17:58 ` Jonathan Bergh
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Bergh @ 2024-02-23 17:58 UTC (permalink / raw)
To: gregkh; +Cc: dan.carpenter, linux-kernel, Jonathan Bergh
This patch does the following things:
- adds a newline after variable declarations as per code style guidelines
Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com>
---
drivers/staging/rtl8192e/rtllib_rx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
index 4df20f4d6bf9..c7c8ffecb825 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -945,6 +945,7 @@ static int rtllib_rx_data_filter(struct rtllib_device *ieee, struct ieee80211_hd
{
u8 type, stype;
u16 fc = le16_to_cpu(hdr->frame_control);
+
type = WLAN_FC_GET_TYPE(fc);
stype = WLAN_FC_GET_STYPE(fc);
--
2.40.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-23 17:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-23 17:58 [PATCH 1/2] staging: rtl8192e: Remove unneeded braces from single line if statement Jonathan Bergh
2024-02-23 17:58 ` [PATCH 2/2] staging: rtl8192e: Include blank line after variable declarations Jonathan Bergh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox