summaryrefslogtreecommitdiff
path: root/drivers/i2c/mtk_i2c.c
diff options
context:
space:
mode:
authorAndrew Goodbody <andrew.goodbody@linaro.org>2025-08-01 11:39:14 +0100
committerMichael Trimarchi <michael@amarulasolutions.com>2025-08-03 10:20:16 +0200
commit4003ed1c1ecfc88092a1d3c65bf432ab7c2ea15f (patch)
treecf40e4f9ea68dd22e78a23cc7f9e3f55f92b968c /drivers/i2c/mtk_i2c.c
parent42ef9a0b7f26ccd7b657e9686a406ee83b8bd08d (diff)
mtd: rawnand: stm32_fmc2: Ensure to return error code
In stm32_fmc2_nfc_probe there are 3 error returns that do not set the error code before returning which could lead to the error being silently ignored. Just return -EINVAL in each case. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'drivers/i2c/mtk_i2c.c')
0 files changed, 0 insertions, 0 deletions