From: Ben Pfaff Date: Thu, 13 Nov 2008 18:26:15 +0000 (-0800) Subject: No need to test argument of kfree_skb() for non-null. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d82ee4e58e302353c3bf67cbb846f86a28b84a8;p=openvswitch No need to test argument of kfree_skb() for non-null. --- diff --git a/datapath/datapath.c b/datapath/datapath.c index 2a8e5a96..bca1bdc5 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -1180,8 +1180,7 @@ static int dp_genl_query(struct sk_buff *skb, struct genl_info *info) } err: nla_put_failure: - if (ans_skb) - kfree_skb(ans_skb); + kfree_skb(ans_skb); rcu_read_unlock(); return err; }