]> git.baikalelectronics.ru Git - uboot.git/commit
usb: Add missing guard around env_get() in usb_hub
authorMarek Vasut <marex@denx.de>
Mon, 19 Sep 2022 19:19:23 +0000 (21:19 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 10 Oct 2022 16:08:18 +0000 (18:08 +0200)
commitca1853ce748d8ec3973b891a8f8029c9013037f7
tree15faa558f0d01a821d32ff8139fb3077eaf22d35
parent50260d695677c2ff421708225b39d9970fb2aeda
usb: Add missing guard around env_get() in usb_hub

The env_get() might be undefined in case ENV_SUPPORT is disabled,
which may happen e.g. in SPL. Add missing ifdef guard around the
env_get() to prevent build failure.

Signed-off-by: Marek Vasut <marex@denx.de>
Tested-by: Fabio Estevam <festevam@denx.de>
common/usb_hub.c