No need to test argument of kfree_skb() for non-null.
authorBen Pfaff <blp@nicira.com>
Thu, 13 Nov 2008 18:26:15 +0000 (10:26 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 13 Nov 2008 20:45:38 +0000 (12:45 -0800)
datapath/datapath.c

index 2a8e5a9643f57bdedb4c2442cb9c4e8f59cdffaa..bca1bdc50e4e076f9d3b23bab20d95f12552e284 100644 (file)
@@ -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;
 }