Skip to content

Commit

Permalink
llc: 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 47a30b2 commit c3431ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/llc/llc_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c3431ea

Please sign in to comment.