mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PATCH: Removed useless variable in arch/x86/boot/tty.c puts()
@ 2009-07-23  0:51 Trevor Pace
  2009-07-24  9:25 ` Amerigo Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Trevor Pace @ 2009-07-23  0:51 UTC (permalink / raw)
  To: tglx, mingo; +Cc: linux-kernel

Change: Removed needless counting integer.

Applies to kernel version 2.6.30.2.

Signed-off-by: Trevor Pace <tr212206@dal.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++;
-	}
 }

 /*

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: Removed useless variable in arch/x86/boot/tty.c puts()
  2009-07-23  0:51 PATCH: Removed useless variable in arch/x86/boot/tty.c puts() Trevor Pace
@ 2009-07-24  9:25 ` Amerigo Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Amerigo Wang @ 2009-07-24  9:25 UTC (permalink / raw)
  To: Trevor Pace; +Cc: tglx, mingo, linux-kernel

On Wed, Jul 22, 2009 at 09:51:28PM -0300, Trevor Pace wrote:
>Change: Removed needless counting integer.
>
>Applies to kernel version 2.6.30.2.
>

This was already done by HPA, please check the latest Linus tree.

Thanks.


>Signed-off-by: Trevor Pace <tr212206@dal.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@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-24  9:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-23  0:51 PATCH: Removed useless variable in arch/x86/boot/tty.c puts() Trevor Pace
2009-07-24  9:25 ` Amerigo Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome