From 2d82ee4e58e302353c3bf67cbb846f86a28b84a8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 13 Nov 2008 10:26:15 -0800 Subject: [PATCH] No need to test argument of kfree_skb() for non-null. --- datapath/datapath.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.30.2