Home
last modified time | relevance | path

Searched hist:c0e8ad830e2c3c0f6b1d451ada925b9b8c89ff8a (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/drivers/imx/dcp/
H A Ddcp_huk.cc0e8ad830e2c3c0f6b1d451ada925b9b8c89ff8a Mon Aug 22 14:51:13 UTC 2022 Jose Quaresma <jose.quaresma@foundries.io> drivers: imx: dcp: fix compilation address error

hwkey->data will never be null because it is an array

struct tee_hw_unique_key {
uint8_t data[HW_UNIQUE_KEY_LENGTH];
};

Fix the following with gcc12:

| core/drivers/imx/dcp/dcp_huk.c: In function 'tee_otp_get_hw_unique_key':
| core/drivers/imx/dcp/dcp_huk.c:71:23: error: the comparison will always evaluate as 'true' for the address of 'data' will never be NULL [-Werror=address]
| 71 | if (!hwkey || !hwkey->data) {
| | ^

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Clement Faure <clement.faure@nxp.com>