]> git.baikalelectronics.ru Git - kernel.git/commit
spi: fsl: simplify error path in of_fsl_spi_probe()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 14 Jan 2020 16:02:40 +0000 (16:02 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jan 2020 16:08:29 +0000 (16:08 +0000)
commit34be9aea82bc27f9b1af8b5806e0d490e9bf3f7e
tree2bb054e75c1c4fdf10427478fc7998ad74692067
parente8efdd4d68fd37f20da0d425d9b58768e7654edb
spi: fsl: simplify error path in of_fsl_spi_probe()

No need to 'goto err;' for just doing a return.
return directly from where the error happens.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Link: https://lore.kernel.org/r/2a4a7e11b37cfa0558d68f0d35e90d6da858b059.1579017697.git.christophe.leroy@c-s.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-spi.c