diff options
author | Austin Kim <austin.kim@lge.com> | 2021-06-11 04:28:35 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-06-11 19:21:28 +0200 |
commit | 0ecc617858fce305bedcf735eb18a46cb7e9921f (patch) | |
tree | b16354e4fafa732f6e88ada0b8ed55c6eb9ebb67 /security/lsm_audit.c | |
parent | audit: remove trailing spaces and tabs (diff) | |
download | linux-0ecc617858fce305bedcf735eb18a46cb7e9921f.tar.xz linux-0ecc617858fce305bedcf735eb18a46cb7e9921f.zip |
audit: remove unnecessary 'ret' initialization
The variable 'ret' is set to 0 when declared.
The 'ret' is unused until it is set to 0 again.
So it had better remove unnecessary initialization.
Signed-off-by: Austin Kim <austin.kim@lge.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/lsm_audit.c')
-rw-r--r-- | security/lsm_audit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/security/lsm_audit.c b/security/lsm_audit.c index 82ce14933513..5a5016ef43b0 100644 --- a/security/lsm_audit.c +++ b/security/lsm_audit.c @@ -119,7 +119,6 @@ int ipv6_skb_to_auditdata(struct sk_buff *skb, return -EINVAL; ad->u.net->v6info.saddr = ip6->saddr; ad->u.net->v6info.daddr = ip6->daddr; - ret = 0; /* IPv6 can have several extension header before the Transport header * skip them */ offset = skb_network_offset(skb); |