commit | b55b6fef1d48c8c44612565d9795ee6e43a65549 | [log] [tgz] |
---|---|---|
author | Tom Rini <trini@konsulko.com> | Wed Apr 20 10:59:32 2016 -0400 |
committer | Tom Rini <trini@konsulko.com> | Wed Apr 20 13:21:24 2016 -0400 |
tree | 7f9482716644e4357f8750e75ad68c73d63d6c3d | |
parent | c5e1fc6c489ef7b4f3eca14c9c951ba02ec5b077 [diff] |
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>