summaryrefslogtreecommitdiff
path: root/include/iomux.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-04-20 10:59:32 -0400
committerTom Rini <trini@konsulko.com>2016-04-20 13:21:24 -0400
commita238b0dacffd305f78fc23b2151521cce2384311 (patch)
tree7f9482716644e4357f8750e75ad68c73d63d6c3d /include/iomux.h
parenteb6b50f631628f48b7e72432ae878e6ff0e306c3 (diff)
downloadu-boot-imx-a238b0dacffd305f78fc23b2151521cce2384311.zip
u-boot-imx-a238b0dacffd305f78fc23b2151521cce2384311.tar.gz
u-boot-imx-a238b0dacffd305f78fc23b2151521cce2384311.tar.bz2
cmd/usb_mass_storage.c: Rework ums_init() ret logic slightly
Previously, ret could be used uninitialized if blk_get_device_part_str() failed. Default to ret being set to -1 so that we always return an err up if we have a problem and then invert the logic on testing ums_count as when that is non-zero is the time we can return 0. Cc: John Tobias <john.tobias.ph@gmail.com> Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/iomux.h')
0 files changed, 0 insertions, 0 deletions