Skip to content

Commit

Permalink
Staging: remove some pointless conditionals before kfree_skb()
Browse files Browse the repository at this point in the history
Remove some pointless conditionals before kfree_skb().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent bbe364d commit 0773a5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/at76_usb/at76_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5370,8 +5370,7 @@ static void at76_delete_device(struct at76_priv *priv)

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);
del_timer_sync(&priv->bss_list_timer);
Expand Down
3 changes: 1 addition & 2 deletions drivers/staging/otus/wwrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,7 @@ int zfLnxCencSendMsg(struct sock *netlink_sk, u_int8_t *msg, int len)
out:
return ret;
nlmsg_failure: /*NLMSG_PUT 失败,则撤销套接字缓存*/
if(skb)
kfree_skb(skb);
kfree_skb(skb);
goto out;

#undef COMMTYPE_GROUP
Expand Down

0 comments on commit 0773a5c

Please sign in to comment.