staging: rtl8192u: Remove print statements for error messages.
PATCH 1/1 staging: rtl8192u: Remove print statements for error messages.
Challenge suggested by coccinelle.
Remove prints of error message, it is not needed to print error messages.
--- drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +0 -2
@@ -119,7 +119,6 @@ static struct sk_buff *ieee80211_ADDBA(struct ieee80211_device *ieee, u8 *Dst, s } skb =dev_alloc_skb (len +sizeof (struct rtl_80211_hdr_3addr ));//need to add something others? FIXME if (!skb) { -IEEE80211_DEBUG (IEEE80211_DL_ERR ,"can't alloc skb for ADDBA_REQ\n" );return NULL ; }
@@ -206,7 +205,6 @@ static struct sk_buff *ieee80211_DELBA( skb =dev_alloc_skb (len +sizeof (struct rtl_80211_hdr_3addr ));//need to add something others? FIXME if (!skb) { -IEEE80211_DEBUG (IEEE80211_DL_ERR ,"can't alloc skb for ADDBA_REQ\n" );return NULL ; }// memset(skb->data, 0, len+sizeof( struct rtl_80211_hdr_3addr));
Signature · 1 line
2.7.4
Quoted 14 lines · Payal Kshirsagar
Challenge suggested by coccinelle.
Remove prints of error message, it is not needed to print error messages.Signed-off-by Payal Kshirsagar <[email protected]>--- drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 2 -- 1 file changed, 2 deletions(-)drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +0
-0
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static struct sk_buff *ieee80211_ADDBA(struct ieee80211_device *ieee, u8 *Dst, s · line 123
Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +0
-1@@ -119,7 +119,6 @@ static struct sk_buff *ieee80211_ADDBA(struct ieee80211_device *ieee, u8 *Dst, s } skb =dev_alloc_skb (len +sizeof (struct rtl_80211_hdr_3addr ));//need to add something others? FIXME if (!skb) { -IEEE80211_DEBUG (IEEE80211_DL_ERR ,"can't alloc skb for ADDBA_REQ\n" );return NULL ; }
Please also remove the now-unneeded { } characters/lines.
thanks,
greg k-h
Quoted 19 lines · Greg KH
Review
Quoted 10 lines · Payal Kshirsagar
Challenge suggested by coccinelle.
Remove prints of error message, it is not needed to print error messages.Signed-off-by Payal Kshirsagar <[email protected]>--- drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 2 -- 1 file changed, 2 deletions(-)(quoted diff) +0
-0
b/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.cdrivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static struct sk_buff *ieee80211_ADDBA(struct
Quoted 4 lines
index 1094454..085309a 100644
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +0
-0@@ -119,7 +119,6 @@ static struct sk_buff *ieee80211_ADDBA(struct
ieee80211_device*ieee, u8 *Dst, sdrivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static struct sk_buff *ieee80211_ADDBA(struct · line 120
Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +0
-0} skb =dev_alloc_skb (len +sizeof (struct rtl_80211_hdr_3addr ));
Quoted 9 lines
//need to add something others? FIXME
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static struct sk_buff *ieee80211_ADDBA(struct · line 122
Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +0
-1if (!skb) { - IEEE80211_DEBUG(IEEE80211_DL_ERR, "can't alloc skb forADDBA_REQ\n");
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static struct sk_buff *ieee80211_ADDBA(struct · line 123
Quoted 2 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c +0
-0return NULL ; }Please also remove the now-unneeded { } characters/lines.
Okay.
Thanks,
Payal
thanks,
Quoted 3 lines
greg k-h