Skip to content

Commit

Permalink
iucv: 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: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Feb 27, 2009
1 parent db849df commit 47a30b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/iucv/af_iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1171,8 +1171,7 @@ static void iucv_callback_txdone(struct iucv_path *path,

spin_unlock_irqrestore(&list->lock, flags);

if (this)
kfree_skb(this);
kfree_skb(this);
}
BUG_ON(!this);

Expand Down

0 comments on commit 47a30b2

Please sign in to comment.