mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
mfd: atmel-smc: Ensure match is initialised
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.goodbody@linaro.org>
This commit is contained in:
committed by
Eugen Hristev
parent
da13ce8a6b
commit
b824136ab4
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user