[PATCH] uml: don't roll my own random MAC generator

Use the existing random_ether_addr() instead of cooking up my own
version.  Pointed out by Dave Hollis and Jason Lunz.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Jeff Dike
2006-09-29 01:58:53 -07:00
committed by Linus Torvalds
parent 3b89af765c
commit fade5d5461
3 changed files with 1 additions and 34 deletions

View File

@@ -310,9 +310,7 @@ static void setup_etheraddr(char *str, unsigned char *addr)
return;
random:
addr[0] = 0xfe;
addr[1] = 0xfd;
random_mac(addr);
random_ether_addr(addr)
}
static DEFINE_SPINLOCK(devices_lock);