projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6613476
)
audit: remove unnecessary assignment in audit_dupe_lsm_field()
author
Li zeming
<zeming@nfschina.com>
Thu, 28 Dec 2023 02:56:00 +0000
(10:56 +0800)
committer
Paul Moore
<paul@paul-moore.com>
Thu, 25 Jan 2024 14:59:27 +0000
(09:59 -0500)
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 <zeming@nfschina.com>
[PM: rewrite subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditfilter.c
patch
|
blob
|
history
diff --git
a/kernel/auditfilter.c
b/kernel/auditfilter.c
index 8317a37dea0bbd6d9e85c0cc7920ff6bdd893304..be8c680121e466efb71d487cef470eddc35ad574 100644
(file)
--- a/
kernel/auditfilter.c
+++ b/
kernel/auditfilter.c
@@
-788,7
+788,7
@@
static int audit_compare_rule(struct audit_krule *a, struct audit_krule *b)
static inline int audit_dupe_lsm_field(struct audit_field *df,
struct audit_field *sf)
{
- int ret
= 0
;
+ int ret;
char *lsm_str;
/* our own copy of lsm_str */