diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-08-26 06:00:22 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-08-26 15:10:39 +0200 |
commit | c07203516439b9cd9f7b3cbed82a77164de5af40 (patch) | |
tree | 681adc1f238049ccd29d8bb12f8954d6de324d62 /kernel/audit.c | |
parent | audit: uninitialize variable audit_sig_sid (diff) | |
download | linux-c07203516439b9cd9f7b3cbed82a77164de5af40.tar.xz linux-c07203516439b9cd9f7b3cbed82a77164de5af40.zip |
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.c | 3 |
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); |