mfd: atmel-smc: Ensure match is initialised
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 28 Jul 2025 16:12:13 +0000 (17:12 +0100)
committerEugen Hristev <eugen.hristev@linaro.org>
Wed, 13 Aug 2025 09:59:36 +0000 (12:59 +0300)
commitb824136ab4f743e09c81af531d430dbe6a2d92bf
tree606c6b5667df5a2cd3770f091027cef86ee86777
parentda13ce8a6b1a37c49d2215ef78ee7984bae1c068
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>
drivers/mfd/atmel-smc.c