diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-01-13 11:32:00 -0600 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-01-16 12:11:01 +1100 |
commit | 97fa9dd999e118144e7d4a5f876c0c7adde5d378 (patch) | |
tree | f2876ce810689e1bfda7dc6d26e40a53a4847d03 /hw/dts.c | |
parent | e9d2bfc6bd75f57b8143d782037a8043dc64a213 (diff) | |
download | skiboot-97fa9dd999e118144e7d4a5f876c0c7adde5d378.zip skiboot-97fa9dd999e118144e7d4a5f876c0c7adde5d378.tar.gz skiboot-97fa9dd999e118144e7d4a5f876c0c7adde5d378.tar.bz2 |
dts: Don't assert when we don't know the processor type
Return an error instead
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/dts.c')
-rw-r--r-- | hw/dts.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -204,7 +204,7 @@ static int dts_read_core_temp(uint32_t pir, struct dts *dts) rc = dts_read_core_temp_p8(pir, dts); break; default: - assert(false); + rc = OPAL_UNSUPPORTED; } return rc; } |