summaryrefslogtreecommitdiff
path: root/net/eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/eth.c')
-rw-r--r--net/eth.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/net/eth.c b/net/eth.c
index 5911b1c..02baa37 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -227,12 +227,7 @@ int eth_register(struct eth_device *dev)
{
struct eth_device *d;
- size_t len = strlen(dev->name);
- if (len >= NAMESIZE) {
- printf("Network driver name is too long (%zu >= %zu): %s\n",
- len, NAMESIZE, dev->name);
- return -1;
- }
+ assert(strlen(dev->name) < NAMESIZE);
if (!eth_devices) {
eth_current = eth_devices = dev;