]> git.dujemihanovic.xyz Git - u-boot.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)
commitfcb670b794c9839c026757bf2d5cd564323ce199
tree15faa558f0d01a821d32ff8139fb3077eaf22d35
parent73e741b8ee46eba4e02a3bcc758dbd70540ed3c1
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