Staging: rtl8192u: ieee80211: Remove custom macro IEEE80211_DEBUG
Remove the custom macro IEEE80211_DEBUG for printing message in dev_alloc_skb in order to maintain Linux kernel coding style based on which kernel does not print failure warning. Issue suggested by Coccinelle Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
8eaade8861
Коммит
d247b0357f
|
@ -118,10 +118,8 @@ static struct sk_buff *ieee80211_ADDBA(struct ieee80211_device *ieee, u8 *Dst, s
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
skb = dev_alloc_skb(len + sizeof(struct rtl_80211_hdr_3addr)); //need to add something others? FIXME
|
skb = dev_alloc_skb(len + sizeof(struct rtl_80211_hdr_3addr)); //need to add something others? FIXME
|
||||||
if (!skb) {
|
if (!skb)
|
||||||
IEEE80211_DEBUG(IEEE80211_DL_ERR, "can't alloc skb for ADDBA_REQ\n");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
memset(skb->data, 0, sizeof(struct rtl_80211_hdr_3addr)); //I wonder whether it's necessary. Apparently kernel will not do it when alloc a skb.
|
memset(skb->data, 0, sizeof(struct rtl_80211_hdr_3addr)); //I wonder whether it's necessary. Apparently kernel will not do it when alloc a skb.
|
||||||
skb_reserve(skb, ieee->tx_headroom);
|
skb_reserve(skb, ieee->tx_headroom);
|
||||||
|
@ -205,10 +203,8 @@ static struct sk_buff *ieee80211_DELBA(
|
||||||
DelbaParamSet.field.tid = pBA->param_set.field.tid;
|
DelbaParamSet.field.tid = pBA->param_set.field.tid;
|
||||||
|
|
||||||
skb = dev_alloc_skb(len + sizeof(struct rtl_80211_hdr_3addr)); //need to add something others? FIXME
|
skb = dev_alloc_skb(len + sizeof(struct rtl_80211_hdr_3addr)); //need to add something others? FIXME
|
||||||
if (!skb) {
|
if (!skb)
|
||||||
IEEE80211_DEBUG(IEEE80211_DL_ERR, "can't alloc skb for ADDBA_REQ\n");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
// memset(skb->data, 0, len+sizeof( struct rtl_80211_hdr_3addr));
|
// memset(skb->data, 0, len+sizeof( struct rtl_80211_hdr_3addr));
|
||||||
skb_reserve(skb, ieee->tx_headroom);
|
skb_reserve(skb, ieee->tx_headroom);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче