linux-mips
[Top] [All Lists]

[PATCH] Fix unused variable warning in drivers/char/dz.c

To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Subject: [PATCH] Fix unused variable warning in drivers/char/dz.c
From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Date: Sun, 21 Sep 2003 23:35:47 +0200
Cc: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.4i
Hello Maciej,

this fixes an unused variable warning.


Thiemo


diff -abdpruNPX /bigdisk/src/dontdiff linux-orig/drivers/char/dz.c 
linux/drivers/char/dz.c
--- linux-orig/drivers/char/dz.c        Wed Apr 23 19:17:01 2003
+++ linux/drivers/char/dz.c     Sun Sep 21 22:28:40 2003
@@ -1299,9 +1299,12 @@ static void show_serial_version(void)
 
 int __init dz_init(void)
 {
-       int i, tmp;
+       int i;
        long flags;
        struct dz_serial *info;
+#ifndef CONFIG_SERIAL_DEC_CONSOLE
+       int tmp;
+#endif
 
        /* Setup base handler, and timer table. */
        init_bh(SERIAL_BH, do_serial_bh);

<Prev in Thread] Current Thread [Next in Thread>