mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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:
parent
3c1d89545d
commit
da95427ce4
3 changed files with 12 additions and 7 deletions
|
@ -209,8 +209,6 @@ uchar NetArpWaitPacketBuf[PKTSIZE_ALIGN + PKTALIGN];
|
|||
ulong NetArpWaitTimerStart;
|
||||
int NetArpWaitTry;
|
||||
|
||||
int env_changed_id = 0;
|
||||
|
||||
void ArpRequest (void)
|
||||
{
|
||||
int i;
|
||||
|
@ -278,9 +276,10 @@ void ArpTimeoutCheck(void)
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
static void
|
||||
NetInitLoop(proto_t protocol)
|
||||
{
|
||||
static int env_changed_id = 0;
|
||||
bd_t *bd = gd->bd;
|
||||
int env_id = get_env_id ();
|
||||
|
||||
|
@ -295,7 +294,7 @@ NetInitLoop(proto_t protocol)
|
|||
env_changed_id = env_id;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
|
||||
/**********************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue