Skip to contentSkip to conversation

staging: rtl8192u: Remove print statements for error messages.

PATCH Superseded Payal Kshirsagar 2 participants 3 messages Apr 1, 2019 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index 1094454..085309a 100644
@@ -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
#1 lore raw
Quoted 14 lines · Payal Kshirsagar

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 -0
index 1094454..085309a 100644

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

#2 lore raw
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.

---
 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 2 --
 1 file changed, 2 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c

drivers/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, s

drivers/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 -1
      if (!skb) {
-             IEEE80211_DEBUG(IEEE80211_DL_ERR, "can't alloc skb for

ADDBA_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 -0
              return NULL;
      }

Please also remove the now-unneeded { } characters/lines.

Okay.
Thanks,
Payal

thanks,

Quoted 3 lines

greg k-h