From f2d9c30bdf455d8ce6dbf2188c1330e4b33d7d1f Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Wed, 25 Aug 2010 12:10:32 +0900 Subject: [PATCH] datapath: Unconditionally call kfree_skb() kfree_skb() will ignore a NULL pointer. Signed-off-by: Simon Horman Signed-off-by: Jesse Gross --- datapath/brcompat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/datapath/brcompat.c b/datapath/brcompat.c index b68720bd..44b2c992 100644 --- a/datapath/brcompat.c +++ b/datapath/brcompat.c @@ -425,8 +425,7 @@ static int brc_genl_dp_result(struct sk_buff *skb, struct genl_info *info) if (brc_seq == info->snd_seq) { brc_seq++; - if (brc_reply) - kfree_skb(brc_reply); + kfree_skb(brc_reply); brc_reply = skb; complete(&brc_done); -- 2.30.2