]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: remove not used variable in usb_ether_curr_dev
authorHeiko Schocher <hs@denx.de>
Wed, 15 May 2024 06:24:41 +0000 (08:24 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 1 Jun 2024 19:42:09 +0000 (21:42 +0200)
grepping for usb_ether_curr_dev in u-boot source code shows

$ grep -r usb_ether_curr_dev .
./cmd/usb.c:static int __maybe_unused usb_ether_curr_dev = -1; /* current ethernet device */
$

only declared but never used, so it can safely
removed from code.

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
cmd/usb.c

index 23253f22231c7e65e8bc4369a0d013f9ad0d900f..8ddda5a0d89b81d68f7e244ed00d743ae1f14b4c 100644 (file)
--- a/cmd/usb.c
+++ b/cmd/usb.c
@@ -26,9 +26,6 @@
 #ifdef CONFIG_USB_STORAGE
 static int usb_stor_curr_dev = -1; /* current device */
 #endif
-#if defined(CONFIG_USB_HOST_ETHER) && !defined(CONFIG_DM_ETH)
-static int __maybe_unused usb_ether_curr_dev = -1; /* current ethernet device */
-#endif
 
 /* some display routines (info command) */
 static char *usb_get_class_desc(unsigned char dclass)