lkml.org 
[lkml]   [2009]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectPATCH: Removed useless variable in arch/x86/boot/tty.c puts()
From
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++;
- }
}

/*

\
 
 \ /
  Last update: 2009-07-23 02:55    [W:0.031 / U:2.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site