Tom Rini a238b0dacf 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>
2016-04-20 13:21:24 -04:00
..
2016-02-06 12:00:59 +01:00
2016-03-22 12:16:08 -04:00
2016-03-14 15:34:50 -06:00
2016-03-14 19:21:44 -04:00
2016-03-22 12:16:16 -04:00
2016-01-27 15:55:54 +01:00
2016-04-18 17:11:36 -04:00
2016-02-22 16:21:12 +01:00
2016-01-25 10:39:43 -05:00
2016-02-06 12:00:59 +01:00
2016-02-06 12:00:59 +01:00
2016-03-22 12:16:13 -04:00
2016-04-01 17:18:28 -04:00
2016-01-25 10:39:43 -05:00
2016-02-06 12:00:59 +01:00
2016-04-18 12:29:14 -04:00
2016-02-06 12:00:59 +01:00
2016-04-01 17:18:28 -04:00
2016-01-25 10:39:43 -05:00
2016-03-27 09:12:55 -04:00
2016-02-06 12:00:59 +01:00
2016-02-26 08:53:10 -07:00