Fix compilation warning.

Signed-off-by: Ward Vandewege <ward@gnu.org>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2805 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Ward Vandewege 2007-09-24 22:02:31 +00:00
parent 322076cdad
commit 2ee78d8b06
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ const char *get_superio_name(const struct superio_registers reg_table[],
static void dump_regs(const struct superio_registers reg_table[], static void dump_regs(const struct superio_registers reg_table[],
int i, int j, uint16_t port) int i, int j, uint16_t port)
{ {
int k, *idx; int k;
const int *idx;
if (reg_table[i].ldn[j].ldn != NOLDN) { if (reg_table[i].ldn[j].ldn != NOLDN) {
printf("LDN 0x%02x ", reg_table[i].ldn[j].ldn); printf("LDN 0x%02x ", reg_table[i].ldn[j].ldn);