aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/chiptod.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/chiptod.c b/hw/chiptod.c
index 69e05d9..88f6c8e 100644
--- a/hw/chiptod.c
+++ b/hw/chiptod.c
@@ -452,7 +452,7 @@ static enum chiptod_chip_status _chiptod_get_chip_status(int32_t chip_id)
if (xscom_read(chip_id, TOD_STATUS, &tod_status) != 0) {
prerror("CHIPTOD: XSCOM error reading TOD_STATUS reg\n");
- goto out;
+ return status;
}
if (tod_status & TOD_ST_ACTIVE_MASTER)
@@ -460,7 +460,6 @@ static enum chiptod_chip_status _chiptod_get_chip_status(int32_t chip_id)
else if (tod_status & TOD_ST_BACKUP_MASTER)
status = chiptod_backup_master;
-out:
return status;
}