From: David Rientjes Remove unused bound variable in sync_tsc(). Reported by D Binderman . Cc: Andi Kleen Cc: Alan Cox Signed-off-by: David Rientjes Signed-off-by: Andrew Morton --- arch/x86_64/kernel/smpboot.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff -puN arch/x86_64/kernel/smpboot.c~x86_64-smpboot-remove-unused-variable arch/x86_64/kernel/smpboot.c --- a/arch/x86_64/kernel/smpboot.c~x86_64-smpboot-remove-unused-variable +++ a/arch/x86_64/kernel/smpboot.c @@ -272,7 +272,7 @@ static __cpuinit void sync_tsc(unsigned { int i, done = 0; long delta, adj, adjust_latency = 0; - unsigned long flags, rt, master_time_stamp, bound; + unsigned long flags, rt, master_time_stamp; #ifdef DEBUG_TSC_SYNC static struct syncdebug { long rt; /* roundtrip time */ @@ -301,11 +301,8 @@ static __cpuinit void sync_tsc(unsigned { for (i = 0; i < NUM_ROUNDS; ++i) { delta = get_delta(&rt, &master_time_stamp); - if (delta == 0) { + if (delta == 0) done = 1; /* let's lock on to this... */ - bound = rt; - } - if (!done) { unsigned long t; if (i > 0) { _