staging:rtl8192e: Indent the code
PATCH 1/1 staging:rtl8192e: Indent the code
Indent the code in order to follow the rules and to increase the readability of the code.
--- drivers/staging/rtl8192e/rtllib_wx.c | 6 +++--- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 2 +- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192e/rtllib_wx.c +3 -3
@@ -668,11 +668,11 @@ int rtllib_wx_set_encode_ext(struct rtllib_device *ieee,if (ieee->set_security) ieee->set_security (ieee->dev, &sec); -if (ieee->reset_on_keychange && +if (ieee->reset_on_keychange && ieee->iw_mode !=IW_MODE_INFRA && ieee->reset_port && ieee->reset_port (dev)) { -netdev_dbg (ieee->dev,"Port reset failed\n" ); -return -EINVAL ; +netdev_dbg (ieee->dev,"Port reset failed\n" ); +return -EINVAL ; }return ret; }
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +1 -1
@@ -939,7 +939,7 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,if (HTCCheck (ieee, skb->data)) {if (net_ratelimit ()) -printk ("find HTCControl\n" ); +printk ("find HTCControl\n" ); hdrlen +=4 ; rx_stats->bContainHTC = true; }
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1 -1
@@ -466,7 +466,7 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee) goto out; ieee->set_chan (ieee->dev, ch);if (channel_map[ch] ==1 ) -ieee80211_send_probe_requests (ieee); +ieee80211_send_probe_requests (ieee);/* this prevent excessive time wait when we * need to wait for a syncro scan to end..
Signature · 1 line
2.7.4
Quoted 16 lines · Georgiana Rodica Chelu
Indent the code in order to follow the rules and to increase the readability of the code.
Signed-off-by Georgiana Rodica Chelu <[email protected]>--- drivers/staging/rtl8192e/rtllib_wx.c | 6 +++--- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 2 +- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)drivers/staging/rtl8192e/rtllib_wx.c +0
-0@@ -668,11 +668,11 @@ int rtllib_wx_set_encode_ext(struct rtllib_device *ieee,if (ieee->set_security)
drivers/staging/rtl8192e/rtllib_wx.c int rtllib_wx_set_encode_ext(struct rtllib_device *ieee, · line 675
Quoted 10 lines
drivers/staging/rtl8192e/rtllib_wx.c +3
-3ieee->set_security (ieee->dev, &sec); -if (ieee->reset_on_keychange && +if (ieee->reset_on_keychange && ieee->iw_mode !=IW_MODE_INFRA && ieee->reset_port && ieee->reset_port (dev)) { -netdev_dbg (ieee->dev,"Port reset failed\n" ); -return -EINVAL ; +netdev_dbg (ieee->dev,"Port reset failed\n" ); +return -EINVAL ;
I think that the last two lines were already fine here. Good catch for the next two.
julia
Quoted 39 lines
drivers/staging/rtl8192e/rtllib_wx.c +0
-0}return ret; }drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +1
-1@@ -939,7 +939,7 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,if (HTCCheck (ieee, skb->data)) {if (net_ratelimit ()) -printk ("find HTCControl\n" ); +printk ("find HTCControl\n" ); hdrlen +=4 ; rx_stats->bContainHTC = true; }drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +1
-2@@ -466,7 +466,7 @@ void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee) goto out; ieee->set_chan (ieee->dev, ch);if (channel_map[ch] ==1 ) -ieee80211_send_probe_requests (ieee); +ieee80211_send_probe_requests (ieee);/* this prevent excessive time wait when we * need to wait for a syncro scan to end.. -- 2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170306191929.GA5046%40fireworks.
For more options, visit https://groups.google.com/d/optout.