Skip to content

Commit 6f089e9

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
spi: mt65xx: Don't disguise a "return 0" as "return ret"
Because of the earlier if (ret) return ret; ret is always zero at the end of mtk_spi_suspend(). Write it as explicit return 0 for slightly improved clearness. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230530081648.2199419-4-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent df7e471 commit 6f089e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-mt65xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ static int mtk_spi_suspend(struct device *dev)
13121312
clk_disable_unprepare(mdata->spi_hclk);
13131313
}
13141314

1315-
return ret;
1315+
return 0;
13161316
}
13171317

13181318
static int mtk_spi_resume(struct device *dev)

0 commit comments

Comments
 (0)