Skip to content

Commit 0ecc617

Browse files
Austin Kimpcmoore
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Moore <[email protected]>
1 parent 6ddb568 commit 0ecc617

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

security/lsm_audit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ int ipv6_skb_to_auditdata(struct sk_buff *skb,
119119
return -EINVAL;
120120
ad->u.net->v6info.saddr = ip6->saddr;
121121
ad->u.net->v6info.daddr = ip6->daddr;
122-
ret = 0;
123122
/* IPv6 can have several extension header before the Transport header
124123
* skip them */
125124
offset = skb_network_offset(skb);

0 commit comments

Comments
 (0)