mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
llc: remove some pointless conditionals before kfree_skb()
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>
This commit is contained in:
parent
47a30b26e5
commit
c3431ea71e
1 changed files with 1 additions and 2 deletions
|
@ -332,8 +332,7 @@ int llc_conn_remove_acked_pdus(struct sock *sk, u8 nr, u16 *how_many_unacked)
|
|||
|
||||
for (i = 0; i < pdu_pos && i < q_len; i++) {
|
||||
skb = skb_dequeue(&llc->pdu_unack_q);
|
||||
if (skb)
|
||||
kfree_skb(skb);
|
||||
kfree_skb(skb);
|
||||
nbr_acked++;
|
||||
}
|
||||
out:
|
||||
|
|
Loading…
Reference in a new issue