If the test in the for loop is never matched then the variable 'match' will never be assigned to. Provide an initial value so this cannot be a problem.
This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodb...@linaro.org> --- drivers/mfd/atmel-smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/atmel-smc.c b/drivers/mfd/atmel-smc.c index 15296f71a16..94e5e7b67a0 100644 --- a/drivers/mfd/atmel-smc.c +++ b/drivers/mfd/atmel-smc.c @@ -347,7 +347,7 @@ const struct atmel_hsmc_reg_layout * atmel_hsmc_get_reg_layout(ofnode np) { int i; - const struct udevice_id *match; + const struct udevice_id *match = NULL; const char *name; int len; --- base-commit: 4c3b5fcd810081bd7f3c51859fe1b5f0c159803c change-id: 20250728-atmel-smc-624b38b456f6 Best regards, -- Andrew Goodbody <andrew.goodb...@linaro.org>