[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <bad58e960907221751h4520c359u47b29edd77f02db1@mail.gmail.com>
Date: Wed, 22 Jul 2009 21:51:28 -0300
From: Trevor Pace <trevorpace@...il.com>
To: tglx@...utronix.de, mingo@...hat.com
Cc: linux-kernel@...r.kernel.org
Subject: PATCH: Removed useless variable in arch/x86/boot/tty.c puts()
Change: Removed needless counting integer.
Applies to kernel version 2.6.30.2.
Signed-off-by: Trevor Pace <tr212206@....ca>
=====================================================================
--- arch/x86/boot/tty.c 2009-07-22 19:59:33.000000000 -0300
+++ arch/x86/boot/tty.c 2009-07-22 21:37:25.000000000 -0300
@@ -35,11 +35,8 @@ void __attribute__((section(".inittext")
void __attribute__((section(".inittext"))) puts(const char *str)
{
- int n = 0;
- while (*str) {
+ while (*str)
putchar(*str++);
- n++;
- }
}
/*
--
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