From: Simon Horman Date: Wed, 25 Aug 2010 03:10:32 +0000 (+0900) Subject: datapath: Unconditionally call kfree_skb() X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2d9c30bdf455d8ce6dbf2188c1330e4b33d7d1f;p=openvswitch datapath: Unconditionally call kfree_skb() kfree_skb() will ignore a NULL pointer. Signed-off-by: Simon Horman Signed-off-by: Jesse Gross --- 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);