summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/skylake/pcr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/skylake/pcr.c b/src/soc/intel/skylake/pcr.c
index 7efbb2547a..b6de73c74c 100644
--- a/src/soc/intel/skylake/pcr.c
+++ b/src/soc/intel/skylake/pcr.c
@@ -63,7 +63,7 @@ static int pch_pcr_read(u8 pid, u16 offset, u32 size, void *data)
*(u8 *) data = read8(pcr_reg_address(pid, offset));
break;
default:
- break;
+ return -1;
}
return 0;
}
@@ -123,7 +123,7 @@ static int pch_pcr_write(u8 pid, u16 offset, u32 size, u32 data)
write8(pcr_reg_address(pid, offset), (u8) data);
break;
default:
- break;
+ return -1;
}
/* Ensure the writes complete. */
complete_write();