Commit 1ac148c4 authored by Nicolas Dechesne's avatar Nicolas Dechesne Committed by Bjorn Andersson
Browse files

sahara_run: properly propagate error



We should return in case we haven't reached the end of the Sahara
init, which is when we set done to true. If done is not set to true
before returning from sahara_run() , it means something went wrong.

Signed-off-by: default avatarNicolas Dechesne <nicolas.dechesne@linaro.org>
parent 8456cb2c
......@@ -235,5 +235,5 @@ int sahara_run(struct qdl_device *qdl, char *prog_mbn)
}
}
return 0;
return done ? 0 : -1;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment