Staging: rtl8192u: Change C99 // comments
PATCH 1/1 Staging: rtl8192u: Change C99 // comments
Remove the all '//' and instead of '/* */' put.
This Error found with checkpatch.pl
Signed-off-by Hatice ERTURK <[email protected]>
--- .../staging/rtl8192u/ieee80211/ieee80211_module.c | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +20 -20
@@ -152,7 +152,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv) ieee->privacy_invoked =0 ; ieee->ieee802_1x =1 ; ieee->raw_tx =0 ; -//ieee->hwsec_support = 1; //defalt support hw security. //use module_param instead. +/* ieee->hwsec_support = 1; defalt support hw security. //use module_param instead. */ ieee->hwsec_active =0 ;/* disable hwsec, switch it on when necessary. */ ieee80211_softmac_init (ieee);
@@ -195,8 +195,8 @@ void free_ieee80211(struct net_device *dev) {struct ieee80211_device *ieee =netdev_priv (dev);int i; -/* struct list_head *p, *q; */ -// del_timer_sync(&ieee->SwBwTimer); +/* struct list_head *p, *q; +del_timer_sync(&ieee->SwBwTimer); */ kfree (ieee->pHTInfo); ieee->pHTInfo =NULL ;RemoveAllTS (ieee);
@@ -222,23 +222,23 @@ void free_ieee80211(struct net_device *dev)u32 ieee80211_debug_level;static int debug = \ -// IEEE80211_DL_INFO | -// IEEE80211_DL_WX | -// IEEE80211_DL_SCAN | -// IEEE80211_DL_STATE | -// IEEE80211_DL_MGMT | -// IEEE80211_DL_FRAG | -// IEEE80211_DL_EAP | -// IEEE80211_DL_DROP | -// IEEE80211_DL_TX | -// IEEE80211_DL_RX | -//IEEE80211_DL_QOS | -// IEEE80211_DL_HT | -// IEEE80211_DL_TS | -// IEEE80211_DL_BA | -// IEEE80211_DL_REORDER| -// IEEE80211_DL_TRACE | -//IEEE80211_DL_DATA | +/* IEEE80211_DL_INFO | +IEEE80211_DL_WX | +IEEE80211_DL_SCAN | +IEEE80211_DL_STATE | +IEEE80211_DL_MGMT | +IEEE80211_DL_FRAG | +IEEE80211_DL_EAP | +IEEE80211_DL_DROP | +IEEE80211_DL_TX | +IEEE80211_DL_RX | +IEEE80211_DL_QOS | +IEEE80211_DL_HT | +IEEE80211_DL_TS | +IEEE80211_DL_BA | +IEEE80211_DL_REORDER| +IEEE80211_DL_TRACE | +IEEE80211_DL_DATA | */ IEEE80211_DL_ERR /* awayls open this flags to show error out */ ;static struct proc_dir_entry *ieee80211_proc;
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 13 lines · Hatice ERT�RK
Remove the all '//' and instead of '/* */' put.
This Error found with checkpatch.plSigned-off-by Hatice ERTURK <[email protected]>--- .../staging/rtl8192u/ieee80211/ieee80211_module.c | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-)drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +0
-0
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c struct net_device *alloc_ieee80211(int sizeof_priv) · line 155
Quoted 5 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +1
-1@@ -152,7 +152,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv) ieee->privacy_invoked =0 ; ieee->ieee802_1x =1 ; ieee->raw_tx =0 ; -//ieee->hwsec_support = 1; //defalt support hw security. //use module_param instead. +/* ieee->hwsec_support = 1; defalt support hw security. //use module_param instead. */
Lines like this can just be deleted, don't keep them around for no reason.
thanks,
greg k-h