Skip to content

Commit

Permalink
i2400m: 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 aaff1e1 commit c71a269
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wimax/i2400m/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ void i2400m_rx_ctl_ack(struct i2400m *i2400m,
return;

error_waiter_cancelled:
if (ack_skb)
kfree_skb(ack_skb);
kfree_skb(ack_skb);
error_no_waiter:
spin_unlock_irqrestore(&i2400m->rx_lock, flags);
return;
Expand Down

0 comments on commit c71a269

Please sign in to comment.