]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mchp-spdiftx: return directly ret
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 25 Jul 2022 13:09:24 +0000 (16:09 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 26 Jul 2022 10:46:52 +0000 (11:46 +0100)
commit349f8987b0d19e2c70574ed6649fac8041b61e9a
tree042faf9eb270697067e3be38622d8b81a570c68f
parent3687234567263d3d4dff57584f90a133dee1e50e
ASoC: mchp-spdiftx: return directly ret

Avoid having patterns like:

int ret;

// ...
ret = 0;
// ...

ret = call_function();
if (ret)
return ret;

return 0;

and return directly ret for all cases.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220725130925.1781791-5-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/mchp-spdiftx.c