Commit 0773a5c0 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

Staging: remove some pointless conditionals before kfree_skb()

Remove some pointless conditionals before kfree_skb().
Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bbe364dd
...@@ -5370,7 +5370,6 @@ static void at76_delete_device(struct at76_priv *priv) ...@@ -5370,7 +5370,6 @@ static void at76_delete_device(struct at76_priv *priv)
at76_dbg(DBG_PROC_ENTRY, "%s: unlinked urbs", __func__); at76_dbg(DBG_PROC_ENTRY, "%s: unlinked urbs", __func__);
if (priv->rx_skb)
kfree_skb(priv->rx_skb); kfree_skb(priv->rx_skb);
at76_free_bss_list(priv); at76_free_bss_list(priv);
......
...@@ -971,7 +971,6 @@ int zfLnxCencSendMsg(struct sock *netlink_sk, u_int8_t *msg, int len) ...@@ -971,7 +971,6 @@ int zfLnxCencSendMsg(struct sock *netlink_sk, u_int8_t *msg, int len)
out: out:
return ret; return ret;
nlmsg_failure: /*NLMSG_PUT 失败,则撤销套接字缓存*/ nlmsg_failure: /*NLMSG_PUT 失败,则撤销套接字缓存*/
if(skb)
kfree_skb(skb); kfree_skb(skb);
goto out; goto out;
......
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