Commit 311e24fb authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging:wlan-ng: cleanup p80211skb_free and p80211skb_rxmeta_detach

these functions doesn't need return at the end of the function
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7694538c
...@@ -559,17 +559,17 @@ void p80211skb_rxmeta_detach(struct sk_buff *skb) ...@@ -559,17 +559,17 @@ void p80211skb_rxmeta_detach(struct sk_buff *skb)
/* Sanity checks */ /* Sanity checks */
if (skb == NULL) { /* bad skb */ if (skb == NULL) { /* bad skb */
pr_debug("Called w/ null skb.\n"); pr_debug("Called w/ null skb.\n");
goto exit; return;
} }
frmmeta = P80211SKB_FRMMETA(skb); frmmeta = P80211SKB_FRMMETA(skb);
if (frmmeta == NULL) { /* no magic */ if (frmmeta == NULL) { /* no magic */
pr_debug("Called w/ bad frmmeta magic.\n"); pr_debug("Called w/ bad frmmeta magic.\n");
goto exit; return;
} }
rxmeta = frmmeta->rx; rxmeta = frmmeta->rx;
if (rxmeta == NULL) { /* bad meta ptr */ if (rxmeta == NULL) { /* bad meta ptr */
pr_debug("Called w/ bad rxmeta ptr.\n"); pr_debug("Called w/ bad rxmeta ptr.\n");
goto exit; return;
} }
/* Free rxmeta */ /* Free rxmeta */
...@@ -577,8 +577,6 @@ void p80211skb_rxmeta_detach(struct sk_buff *skb) ...@@ -577,8 +577,6 @@ void p80211skb_rxmeta_detach(struct sk_buff *skb)
/* Clear skb->cb */ /* Clear skb->cb */
memset(skb->cb, 0, sizeof(skb->cb)); memset(skb->cb, 0, sizeof(skb->cb));
exit:
return;
} }
/*---------------------------------------------------------------- /*----------------------------------------------------------------
...@@ -660,5 +658,4 @@ void p80211skb_free(struct wlandevice *wlandev, struct sk_buff *skb) ...@@ -660,5 +658,4 @@ void p80211skb_free(struct wlandevice *wlandev, struct sk_buff *skb)
else else
printk(KERN_ERR "Freeing an skb (%p) w/ no frmmeta.\n", skb); printk(KERN_ERR "Freeing an skb (%p) w/ no frmmeta.\n", skb);
dev_kfree_skb(skb); dev_kfree_skb(skb);
return;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment