Skip to content

Commit 11b9d0e

Browse files
committed
MIPS: SNI: Fix GCC 4.6.0 build error
CC arch/mips/sni/time.o arch/mips/sni/time.c: In function 'dosample': arch/mips/sni/time.c:98:19: error: variable 'lsb' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 6be63bb commit 11b9d0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/mips/sni/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void __init sni_a20r_timer_setup(void)
9595
static __init unsigned long dosample(void)
9696
{
9797
u32 ct0, ct1;
98-
volatile u8 msb, lsb;
98+
volatile u8 msb;
9999

100100
/* Start the counter. */
101101
outb_p(0x34, 0x43);
@@ -108,7 +108,7 @@ static __init unsigned long dosample(void)
108108
/* Latch and spin until top byte of counter0 is zero */
109109
do {
110110
outb(0x00, 0x43);
111-
lsb = inb(0x40);
111+
(void) inb(0x40);
112112
msb = inb(0x40);
113113
ct1 = read_c0_count();
114114
} while (msb);

0 commit comments

Comments
 (0)