Skip to content

Commit

Permalink
usb: remove not used variable in usb_ether_curr_dev
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
  • Loading branch information
hsdenx authored and Marek Vasut committed Jun 1, 2024
1 parent ea722aa commit 8f8b4b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8f8b4b0

Please sign in to comment.