lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64N.0611211218180.25455@attu4.cs.washington.edu>
Date:	Tue, 21 Nov 2006 12:20:19 -0800 (PST)
From:	David Rientjes <rientjes@...washington.edu>
To:	d binderman <dcb314@...mail.com>
cc:	Andi Kleen <ak@...e.de>, Alan Cox <alan@...hat.com>,
	linux-kernel@...r.kernel.org
Subject: [PATCH] x86_64 smpboot: remove unused variable

Remove unused bound variable in sync_tsc().

Reported by D Binderman <dcb314@...mail.com>.

Cc: Andi Kleen <ak@...e.de>
Cc: Alan Cox <alan@...hat.com>
Signed-off-by: David Rientjes <rientjes@...washington.edu>
---
 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ