All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] Yama: remove an unused variable
@ 2012-04-20 13:35 Dan Carpenter
  2012-04-20 17:58 ` Kees Cook
  2012-04-23  7:21 ` James Morris
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2012-04-20 13:35 UTC (permalink / raw)
  To: kernel-janitors

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>

diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c
index afb04cb..c852f74 100644
--- 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[] = {

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-23  7:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-20 13:35 [patch] Yama: remove an unused variable Dan Carpenter
2012-04-20 17:58 ` Kees Cook
2012-04-23  7:21 ` James Morris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.