Skip to content

Commit

Permalink
audit: remove unnecessary 'ret' initialization
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
Austin Kim authored and pcmoore committed Jun 11, 2021
1 parent 6ddb568 commit 0ecc617
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion security/lsm_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ecc617

Please sign in to comment.