Searched hist:a238b0dacffd305f78fc23b2151521cce2384311 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/cmd/ |
| H A D | usb_mass_storage.c | a238b0dacffd305f78fc23b2151521cce2384311 Wed Apr 20 14:59:32 UTC 2016 Tom Rini <trini@konsulko.com> 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>
|