Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031388AbWKUUU1 (ORCPT ); Tue, 21 Nov 2006 15:20:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1031390AbWKUUU1 (ORCPT ); Tue, 21 Nov 2006 15:20:27 -0500 Received: from mx1.cs.washington.edu ([128.208.5.52]:40126 "EHLO mx1.cs.washington.edu") by vger.kernel.org with ESMTP id S1031388AbWKUUU0 (ORCPT ); Tue, 21 Nov 2006 15:20:26 -0500 Date: Tue, 21 Nov 2006 12:20:19 -0800 (PST) From: David Rientjes To: d binderman cc: Andi Kleen , Alan Cox , linux-kernel@vger.kernel.org Subject: [PATCH] x86_64 smpboot: remove unused variable In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1320 Lines: 42 Remove unused bound variable in sync_tsc(). Reported by D Binderman . Cc: Andi Kleen Cc: Alan Cox Signed-off-by: David Rientjes --- arch/x86_64/kernel/smpboot.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/x86_64/kernel/smpboot.c b/arch/x86_64/kernel/smpboot.c index 62c2e74..6bc0ec5 100644 --- a/arch/x86_64/kernel/smpboot.c +++ b/arch/x86_64/kernel/smpboot.c @@ -271,7 +271,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 */ @@ -300,11 +300,8 @@ #endif { 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) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/