commit | 3c28be9460ca3d2f7739ca2f15c20f174468970b | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@nvidia.com> | Mon Oct 08 07:45:54 2012 +0000 |
committer | Tom Rini <trini@ti.com> | Wed Oct 17 07:59:09 2012 -0700 |
tree | 1f0088c14448eec8312c32ef34a702023c6875b5 | |
parent | 15664ed77cca05b3ade7a255315a2edfd34d8d70 [diff] |
disk: get_device_and_partition() return value fixes When no valid partitions are found, guarantee that we return -1. This most likely already happens, since the most recent get_partition_info() will have returned an error. However, it's best to be explicit. Remove an unnecessary assignment of ret=0 in the success case; this value is over-written with the processed partition ID later. Signed-off-by: Stephen Warren <swarren@nvidia.com>