mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 19:25:02 +00:00
Fix 'possible use of unassigned' variable 'retval'.
This change ensures that 'retval' is set for all paths to 'done'. BUG=none TEST=Now compiles without warning. Signed-off-by: Taylor Hutt <thutt@chromium.org> Change-Id: I4ab368b5c60afbed28a5b6d5417e18bedf986e2d Reviewed-on: https://gerrit.chromium.org/gerrit/28827 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Taylor Hutt <thutt@chromium.org> Commit-Ready: Taylor Hutt <thutt@chromium.org>
This commit is contained in:
@@ -33,6 +33,7 @@ int cgpt_get_boot_partition_number(CgptBootParams *params) {
|
|||||||
|
|
||||||
if (CGPT_OK != ReadPMBR(&drive)) {
|
if (CGPT_OK != ReadPMBR(&drive)) {
|
||||||
Error("Unable to read PMBR\n");
|
Error("Unable to read PMBR\n");
|
||||||
|
retval = CGPT_FAILED;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user