staging: rtl8192u: Fix indentation
PATCH 1/1 staging: rtl8192u: Fix indentation
Checkpatch reports WARNING:SUSPECT_CODE_INDENT in several places. Fix this by aligning code properly with tabs.
Signed-off-by Stephen Brennan <[email protected]>
--- .../rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 2 +- .../staging/rtl8192u/ieee80211/ieee80211_rx.c | 112 +++++++++--------- .../staging/rtl8192u/ieee80211/ieee80211_tx.c | 18 +-- .../staging/rtl8192u/ieee80211/ieee80211_wx.c | 8 +- drivers/staging/rtl8192u/r819xU_firmware.c | 2 +- 5 files changed, 71 insertions(+), 71 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c +1 -1
@@ -346,7 +346,7 @@ static int ieee80211_ccmp_set_key(void *key, int len, u8 *seq, void *priv) }if (crypto_aead_setauthsize (tfm,CCMP_MIC_LEN ) ||crypto_aead_setkey (tfm, data->key,CCMP_TK_LEN )) -return -1 ; +return -1 ; }else if (len ==0 ) { data->key_set =0 ; }else {
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +56 -56
186 lines not on this page · raw message
drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c +9 -9
@@ -508,7 +508,7 @@ static void ieee80211_query_protectionmode(struct ieee80211_device *ieee,if (ieee->current_network.capability &WLAN_CAPABILITY_SHORT_PREAMBLE ) tcb_desc->bUseShortPreamble = true;if (ieee->mode ==IW_MODE_MASTER ) - goto NO_PROTECTION; + goto NO_PROTECTION;return ; NO_PROTECTION: tcb_desc->bRTSEnable = false;
@@ -808,15 +808,15 @@ int ieee80211_xmit(struct sk_buff *skb, struct net_device *dev)if (qos_actived) { -if (ieee->seq_ctrl[UP2AC (skb->priority) +1 ] ==0xFFF ) - ieee->seq_ctrl[UP2AC (skb->priority) +1 ] =0 ; -else - ieee->seq_ctrl[UP2AC (skb->priority) +1 ]++; +if (ieee->seq_ctrl[UP2AC (skb->priority) +1 ] ==0xFFF ) + ieee->seq_ctrl[UP2AC (skb->priority) +1 ] =0 ; +else + ieee->seq_ctrl[UP2AC (skb->priority) +1 ]++; }else { -if (ieee->seq_ctrl[0 ] ==0xFFF ) - ieee->seq_ctrl[0 ] =0 ; -else - ieee->seq_ctrl[0 ]++; +if (ieee->seq_ctrl[0 ] ==0xFFF ) + ieee->seq_ctrl[0 ] =0 ; +else + ieee->seq_ctrl[0 ]++; } }else {if (unlikely (skb->len <sizeof (struct rtl_80211_hdr_3addr ))) {
drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c +4 -4
@@ -178,7 +178,7 @@ static inline char *rtl819x_translate_scan(struct ieee80211_device *ieee, iwe.u.data.length = p - custom;if (iwe.u.data.length) - start =iwe_stream_add_point (info, start, stop, &iwe, custom); + start =iwe_stream_add_point (info, start, stop, &iwe, custom);if (ieee->wpa_enabled && network->wpa_ie_len) {char buf[MAX_WPA_IE_LEN *2 +30 ];
@@ -219,7 +219,7 @@ static inline char *rtl819x_translate_scan(struct ieee80211_device *ieee, " Last beacon: %lums ago", (jiffies - network->last_scanned) / (HZ / 100)); iwe.u.data.length = p - custom;if (iwe.u.data.length) - start =iwe_stream_add_point (info, start, stop, &iwe, custom); + start =iwe_stream_add_point (info, start, stop, &iwe, custom);return start; }
@@ -786,8 +786,8 @@ int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len)u8 *buf;if (len>MAX_WPA_IE_LEN || (len && !ie)) { -// printk("return error out, len:%d\n", len); -return -EINVAL ; +//printk("return error out, len:%d\n", len); +return -EINVAL ; }
drivers/staging/rtl8192u/r819xU_firmware.c +1 -1
@@ -231,7 +231,7 @@ bool init_firmware(struct net_device *dev) rst_opt =OPT_FIRMWARE_RESET ; starting_state =FW_INIT_STEP2_DATA ; }else { -RT_TRACE (COMP_FIRMWARE ,"PlatformInitFirmware: undefined firmware state\n" ); +RT_TRACE (COMP_FIRMWARE ,"PlatformInitFirmware: undefined firmware state\n" ); }/*
Signature · 1 line
2.22.0
Greg Kroah-Hartman
maintainerQuoted 11 lines · Stephen Brennan
Checkpatch reports WARNING:SUSPECT_CODE_INDENT in several places. Fix this by aligning code properly with tabs.
Signed-off-by Stephen Brennan <[email protected]>--- .../rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 2 +- .../staging/rtl8192u/ieee80211/ieee80211_rx.c | 112 +++++++++--------- .../staging/rtl8192u/ieee80211/ieee80211_tx.c | 18 +-- .../staging/rtl8192u/ieee80211/ieee80211_wx.c | 8 +- drivers/staging/rtl8192u/r819xU_firmware.c | 2 +- 5 files changed, 71 insertions(+), 71 deletions(-)
This patch does not apply to my tree. Please redo it against the latest staging-next branch of the staging.git tree and resend.
thanks,
greg k-h