usb: Make portspeed return a read-only string
authorIsmael Luceno Cortes <ismael.luceno@silicon-gears.com>
Mon, 1 Apr 2019 16:09:13 +0000 (16:09 +0000)
committerMarek Vasut <marex@denx.de>
Tue, 9 Apr 2019 11:11:45 +0000 (13:11 +0200)
commit51f60a89b75e5b71c747e15b8247abae798244ec
tree0dac3be4a666790ea62dab4312ee567cd8035702
parent89aea23abb971fa89b7a96c02024b63d0b918a78
usb: Make portspeed return a read-only string

Current code is plain wrong, and there's no need to have a mutable string,
so fix function type and remove the intermediate variable.

Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com>
cmd/usb.c
common/usb_hub.c