]> git.hungrycats.org Git - linux/commitdiff
[PATCH] hvc: uninitialised variable
authorAnton Blanchard <anton@samba.org>
Tue, 14 Sep 2004 00:44:08 +0000 (17:44 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 14 Sep 2004 00:44:08 +0000 (17:44 -0700)
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/hvc_console.c

index c1c18632d67d6e4842da6c382ef54c1c23fd81cc..a65b2881259a5c1261326e1272795431225aa467 100644 (file)
@@ -801,7 +801,7 @@ int hvc_instantiate(uint32_t vtermno, int index)
 void hvc_console_print(struct console *co, const char *b, unsigned count)
 {
        char c[16] __ALIGNED__;
-       unsigned i, n = 0;
+       unsigned i = 0, n = 0;
        int r, donecr = 0;
 
        /* Console access attempt outside of acceptable console range. */