aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-08-26 04:00:22 +0000
committerPaul Moore <paul@paul-moore.com>2020-08-26 09:10:39 -0400
commitc07203516439b9cd9f7b3cbed82a77164de5af40 (patch)
tree681adc1f238049ccd29d8bb12f8954d6de324d62 /kernel/audit.c
parent265c32072b0ce4156f40527a969d335d03681b30 (diff)
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>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 86f2b76e3d4e..68cee3bc8cfe 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -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);

Privacy Policy