Skip to content

Commit

Permalink
dts: Don't assert when we don't know the processor type
Browse files Browse the repository at this point in the history
Return an error instead

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
ozbenh authored and stewartsmith committed Jan 16, 2017
1 parent e9d2bfc commit 97fa9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/dts.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 97fa9dd

Please sign in to comment.