1
0
Fork 0

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>
zero-sugar-mainline-defconfig
Xu Wang 2020-08-26 04:00:22 +00:00 committed by Paul Moore
parent 265c32072b
commit c072035164
1 changed files with 1 additions and 2 deletions

View File

@ -934,8 +934,7 @@ static void audit_free_reply(struct audit_reply *reply)
if (!reply)
return;
if (reply->skb)
kfree_skb(reply->skb);
kfree_skb(reply->skb);
if (reply->net)
put_net(reply->net);
kfree(reply);