[U-Boot] disk: get_device_and_partition() return value fixes
Tom Rini
trini at ti.com
Wed Oct 17 17:00:26 CEST 2012
On Mon, Oct 08, 2012 at 07:45:54AM -0000, Stephen Warren wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> 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 at nvidia.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121017/946ebae4/attachment.pgp>
More information about the U-Boot
mailing list