net/miiphy/serial: drop duplicate "NAMESIZE" define
A few subsystems are using the same define "NAMESIZE". This has been working so far because they define it to the same number. However, I want to change the size of eth_device's NAMESIZE, so rather than tweak the define names, simply drop references to it. Almost no one does, and the handful that do can easily be changed to a sizeof(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
2b22460956
commit
f6add132f6
@@ -221,7 +221,7 @@ void mv6436x_eth_initialize (bd_t * bis)
|
||||
return;
|
||||
}
|
||||
|
||||
/* must be less than NAMESIZE (16) */
|
||||
/* must be less than sizeof(dev->name) */
|
||||
sprintf (dev->name, "mv_enet%d", devnum);
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
@@ -221,7 +221,7 @@ void mv6446x_eth_initialize (bd_t * bis)
|
||||
return;
|
||||
}
|
||||
|
||||
/* must be less than NAMESIZE (16) */
|
||||
/* must be less than sizeof(dev->name) */
|
||||
sprintf (dev->name, "mv_enet%d", devnum);
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
Reference in New Issue
Block a user