memory: stm32-fmc2-ebi: check regmap_read return value
authorChristophe Kerello <christophe.kerello@foss.st.com>
Mon, 26 Feb 2024 10:14:25 +0000 (11:14 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 27 Feb 2024 09:18:03 +0000 (10:18 +0100)
commit722463f73bcf65a8c818752a38c14ee672c77da1
tree8754ac2d97157f974e597108d88daed3ac48bc87
parent97dcd1ef76412d0f25d2d50215565fd4d9ef91db
memory: stm32-fmc2-ebi: check regmap_read return value

Check regmap_read return value to avoid to use uninitialized local
variables.

Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Link: https://lore.kernel.org/r/20240226101428.37791-3-christophe.kerello@foss.st.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/stm32-fmc2-ebi.c