From 26d88de9e5be0ceffe8ac035c5089226ce8e0cb2 Mon Sep 17 00:00:00 2001 From: Hanyuan Zhao Date: Fri, 9 Aug 2024 16:56:56 +0800 Subject: [PATCH] net: dc2114x: set the card number to start at zero Otherwise the number might get kind of weird. Signed-off-by: Hanyuan Zhao --- drivers/net/dc2114x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c index 7f0715429f..cf9f78163a 100644 --- a/drivers/net/dc2114x.c +++ b/drivers/net/dc2114x.c @@ -561,7 +561,7 @@ static int dc2114x_read_rom_hwaddr(struct udevice *dev) static int dc2114x_bind(struct udevice *dev) { - static int card_number; + static int card_number = 0; char name[16]; sprintf(name, "dc2114x#%u", card_number++); -- 2.39.5