]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: usb: Simply device finding code in usb_storage
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:22:13 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:22 +0000 (11:11 -0600)
commit84073b6f3c202f5d67813fd3ae5377bf2d98d66b
tree038dd7f855069120e83ee60978eea60a26e0b86c
parent1d5827a12ebd20d64b972111b846cb1ca87ff82e
dm: usb: Simply device finding code in usb_storage

The for() loop is not needed since the value is immediately accessible.
Use this instead to simplify the code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
common/usb_storage.c