mb/google/deltaur: Make return values non-const
Returning a const uint32_t doesn't do anything, and it conflicts with the declaration of sku_id() in include/boardid.h. Change-Id: I2719e5782c9977f8ca4ce8f1dd781f092aa73d64 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Found-by: Coverity CID 1428708 Reviewed-on: https://review.coreboot.org/c/coreboot/+/44746 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
b126380b00
commit
3c16fe4fad
|
@ -6,12 +6,12 @@
|
||||||
#include <smbios.h>
|
#include <smbios.h>
|
||||||
#include <variant/variant.h>
|
#include <variant/variant.h>
|
||||||
|
|
||||||
static const uint32_t get_sku_index(void)
|
static uint32_t get_sku_index(void)
|
||||||
{
|
{
|
||||||
return ((!has_360_sensor_board()) | (wilco_ec_signed_fw() << 1));
|
return ((!has_360_sensor_board()) | (wilco_ec_signed_fw() << 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
const uint32_t sku_id(void)
|
uint32_t sku_id(void)
|
||||||
{
|
{
|
||||||
return skus[get_sku_index()].id;
|
return skus[get_sku_index()].id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue