From: Heiko Schocher Date: Wed, 15 May 2024 06:24:41 +0000 (+0200) Subject: usb: remove not used variable in usb_ether_curr_dev X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=8f8b4b0833fb8e890d053860ecf1c39d037c8039;p=u-boot.git usb: remove not used variable in usb_ether_curr_dev 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 Reviewed-by: Marek Vasut --- diff --git a/cmd/usb.c b/cmd/usb.c index 23253f2223..8ddda5a0d8 100644 --- 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)