From e9d35946c84c44e33e007123d3d595ccbd21d1a4 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 26 May 2011 13:17:35 +0200 Subject: [PATCH] x86: vdso: Remove unused variable Reported-by: Peter Zijlstra Signed-off-by: Thomas Gleixner Cc: Andy Lutomirski --- arch/x86/vdso/vclock_gettime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/vdso/vclock_gettime.c b/arch/x86/vdso/vclock_gettime.c index a69929e8bfdb..a724905fdae7 100644 --- a/arch/x86/vdso/vclock_gettime.c +++ b/arch/x86/vdso/vclock_gettime.c @@ -175,8 +175,8 @@ static __always_inline long time_syscall(long *t) notrace time_t __vdso_time(time_t *t) { - unsigned seq; time_t result; + if (unlikely(!VVAR(vsyscall_gtod_data).sysctl_enabled)) return time_syscall(t);