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>
This commit is contained in:
@ -95,7 +95,7 @@ static void __init sni_a20r_timer_setup(void)
|
|||||||
static __init unsigned long dosample(void)
|
static __init unsigned long dosample(void)
|
||||||
{
|
{
|
||||||
u32 ct0, ct1;
|
u32 ct0, ct1;
|
||||||
volatile u8 msb, lsb;
|
volatile u8 msb;
|
||||||
|
|
||||||
/* Start the counter. */
|
/* Start the counter. */
|
||||||
outb_p(0x34, 0x43);
|
outb_p(0x34, 0x43);
|
||||||
@ -108,7 +108,7 @@ static __init unsigned long dosample(void)
|
|||||||
/* Latch and spin until top byte of counter0 is zero */
|
/* Latch and spin until top byte of counter0 is zero */
|
||||||
do {
|
do {
|
||||||
outb(0x00, 0x43);
|
outb(0x00, 0x43);
|
||||||
lsb = inb(0x40);
|
(void) inb(0x40);
|
||||||
msb = inb(0x40);
|
msb = inb(0x40);
|
||||||
ct1 = read_c0_count();
|
ct1 = read_c0_count();
|
||||||
} while (msb);
|
} while (msb);
|
||||||
|
Reference in New Issue
Block a user