projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
561381a
)
Yama: remove an unused variable
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 20 Apr 2012 13:35:24 +0000
(16:35 +0300)
committer
James Morris
<james.l.morris@oracle.com>
Mon, 23 Apr 2012 07:20:22 +0000
(17:20 +1000)
GCC complains that we don't use "one" any more after
389da25f93
"Yama:
add additional ptrace scopes".
security/yama/yama_lsm.c:322:12: warning: ?one? defined but not used
[-Wunused-variable]
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/yama/yama_lsm.c
patch
|
blob
|
blame
|
history
diff --git
a/security/yama/yama_lsm.c
b/security/yama/yama_lsm.c
index afb04cbb697117e1509de2ff107cfedd53c05ad8..c852f7472ad0eee5c4459ce692f12ac7b77143c2 100644
(file)
--- a/
security/yama/yama_lsm.c
+++ b/
security/yama/yama_lsm.c
@@
-319,7
+319,6
@@
static int yama_dointvec_minmax(struct ctl_table *table, int write,
}
static int zero;
-static int one = 1;
static int max_scope = YAMA_SCOPE_NO_ATTACH;
struct ctl_path yama_sysctl_path[] = {