Commit c71a2699 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

i2400m: 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 avatarDavid S. Miller <davem@davemloft.net>
parent aaff1e19
...@@ -177,8 +177,7 @@ void i2400m_rx_ctl_ack(struct i2400m *i2400m, ...@@ -177,8 +177,7 @@ void i2400m_rx_ctl_ack(struct i2400m *i2400m,
return; return;
error_waiter_cancelled: error_waiter_cancelled:
if (ack_skb) kfree_skb(ack_skb);
kfree_skb(ack_skb);
error_no_waiter: error_no_waiter:
spin_unlock_irqrestore(&i2400m->rx_lock, flags); spin_unlock_irqrestore(&i2400m->rx_lock, flags);
return; 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