spi: ich: Do not use uninitialised value
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 12 Aug 2025 13:31:16 +0000 (14:31 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 16:33:00 +0000 (10:33 -0600)
commitc01280b62c44e2a6be57440939f1912e60a7d5ec
treec3f52bfa58539f1ce463db98426df941b88fe51f
parent094593bf82e78f913c32d10de9c7dbed0591abe9
spi: ich: Do not use uninitialised value

In ich_spi_exec_op_swseq the variable with_address is only assigned a
value in the case of op->addr.nbytes being non-zero.
Initialise with_address to zero. so that it is always valid.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/spi/ich.c