Skip to content
Snippets Groups Projects
Commit 71bba424 authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

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: default avatarStephen Warren <swarren@nvidia.com>
parent 8af4472a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment