]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:54 +0000 (21:47 +0200)
commit5945796a748df890370750fcb2c844bb07e5f8fd
tree50b36cb828ec68801852d2e6d76ff23c2dfed010
parent6afe9869850f9ed9f25dc4f7a3f83c94be17c247
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