Skip to content

Commit 3104d0e

Browse files
Li zemingpcmoore
authored andcommitted
audit: remove unnecessary assignment in audit_dupe_lsm_field()
The ret variable is assigned when it does not need to be defined, as it has already been assigned before use. Signed-off-by: Li zeming <[email protected]> [PM: rewrite subject line] Signed-off-by: Paul Moore <[email protected]>
1 parent 6613476 commit 3104d0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/auditfilter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static int audit_compare_rule(struct audit_krule *a, struct audit_krule *b)
788788
static inline int audit_dupe_lsm_field(struct audit_field *df,
789789
struct audit_field *sf)
790790
{
791-
int ret = 0;
791+
int ret;
792792
char *lsm_str;
793793

794794
/* our own copy of lsm_str */

0 commit comments

Comments
 (0)