projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265c320
)
audit: Remove redundant null check
author
Xu Wang
<vulab@iscas.ac.cn>
Wed, 26 Aug 2020 04:00:22 +0000
(
04:00
+0000)
committer
Paul Moore
<paul@paul-moore.com>
Wed, 26 Aug 2020 13:10:39 +0000
(09:10 -0400)
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>
kernel/audit.c
patch
|
blob
|
history
diff --git
a/kernel/audit.c
b/kernel/audit.c
index
86f2b76
..
68cee3b
100644
(file)
--- 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);