audit: Remove redundant null check
Because kfree_skb already checked NULL skb parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
265c32072b
commit
c072035164
|
@ -934,7 +934,6 @@ static void audit_free_reply(struct audit_reply *reply)
|
||||||
if (!reply)
|
if (!reply)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (reply->skb)
|
|
||||||
kfree_skb(reply->skb);
|
kfree_skb(reply->skb);
|
||||||
if (reply->net)
|
if (reply->net)
|
||||||
put_net(reply->net);
|
put_net(reply->net);
|
||||||
|
|
Loading…
Reference in New Issue