Commit 9ab9898e authored by Richard Knutsson's avatar Richard Knutsson Committed by Linus Torvalds

pcmcia/pcnet_cs: fix 'shadow variable' warning

Fixing:
  CHECK   drivers/net/pcmcia/pcnet_cs.c
drivers/net/pcmcia/pcnet_cs.c:523:15: warning: symbol 'hw_info' shadows an earlier one
drivers/net/pcmcia/pcnet_cs.c:148:18: originally declared here
Signed-off-by: default avatarRichard Knutsson <ricknu-0@student.ltu.se>
Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cfd4734c
...@@ -521,7 +521,7 @@ static int pcnet_config(struct pcmcia_device *link) ...@@ -521,7 +521,7 @@ static int pcnet_config(struct pcmcia_device *link)
int i, last_ret, last_fn, start_pg, stop_pg, cm_offset; int i, last_ret, last_fn, start_pg, stop_pg, cm_offset;
int has_shmem = 0; int has_shmem = 0;
u_short buf[64]; u_short buf[64];
hw_info_t *hw_info; hw_info_t *local_hw_info;
DECLARE_MAC_BUF(mac); DECLARE_MAC_BUF(mac);
DEBUG(0, "pcnet_config(0x%p)\n", link); DEBUG(0, "pcnet_config(0x%p)\n", link);
...@@ -590,23 +590,23 @@ static int pcnet_config(struct pcmcia_device *link) ...@@ -590,23 +590,23 @@ static int pcnet_config(struct pcmcia_device *link)
dev->if_port = 0; dev->if_port = 0;
} }
hw_info = get_hwinfo(link); local_hw_info = get_hwinfo(link);
if (hw_info == NULL) if (local_hw_info == NULL)
hw_info = get_prom(link); local_hw_info = get_prom(link);
if (hw_info == NULL) if (local_hw_info == NULL)
hw_info = get_dl10019(link); local_hw_info = get_dl10019(link);
if (hw_info == NULL) if (local_hw_info == NULL)
hw_info = get_ax88190(link); local_hw_info = get_ax88190(link);
if (hw_info == NULL) if (local_hw_info == NULL)
hw_info = get_hwired(link); local_hw_info = get_hwired(link);
if (hw_info == NULL) { if (local_hw_info == NULL) {
printk(KERN_NOTICE "pcnet_cs: unable to read hardware net" printk(KERN_NOTICE "pcnet_cs: unable to read hardware net"
" address for io base %#3lx\n", dev->base_addr); " address for io base %#3lx\n", dev->base_addr);
goto failed; goto failed;
} }
info->flags = hw_info->flags; info->flags = local_hw_info->flags;
/* Check for user overrides */ /* Check for user overrides */
info->flags |= (delay_output) ? DELAY_OUTPUT : 0; info->flags |= (delay_output) ? DELAY_OUTPUT : 0;
if ((link->manf_id == MANFID_SOCKET) && if ((link->manf_id == MANFID_SOCKET) &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment