netloop: updates for NetLoop
Fix some issues introduced from commit:
2f70c49e5b
suggested by Mike Frysinger.
- added some comment for the env_id variable in common_cmd_nvedit.c
- moved some variables in fn scope instead of file scope
- NetInitLoop now static void
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
3c1d89545d
commit
da95427ce4
@@ -57,9 +57,6 @@ int eth_setenv_enetaddr(char *name, const uchar *enetaddr)
|
||||
|
||||
#if defined(CONFIG_CMD_NET) && defined(CONFIG_NET_MULTI)
|
||||
|
||||
static char *act = NULL;
|
||||
static int env_changed_id = 0;
|
||||
|
||||
/*
|
||||
* CPU and board-specific Ethernet initializations. Aliased function
|
||||
* signals caller to move on
|
||||
@@ -471,6 +468,8 @@ void eth_try_another(int first_restart)
|
||||
#ifdef CONFIG_NET_MULTI
|
||||
void eth_set_current(void)
|
||||
{
|
||||
static char *act = NULL;
|
||||
static int env_changed_id = 0;
|
||||
struct eth_device* old_current;
|
||||
int env_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user