]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-fsl-dspi: Reduce indentation level in dspi_interrupt
authorVladimir Oltean <olteanv@gmail.com>
Thu, 22 Aug 2019 21:15:10 +0000 (00:15 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 23 Aug 2019 11:00:59 +0000 (12:00 +0100)
commit809272c91bba6f54dd9a36120080c69bce6b2687
tree4c2a72deed4fe599dc63b58cd0035cd86a82de2f
parent01d7d2b1cac30ed330efa3bd1ed4523be79f470c
spi: spi-fsl-dspi: Reduce indentation level in dspi_interrupt

If the entire function depends on the SPI status register having the
interrupt bits asserted, then just check it and exit early if those bits
aren't set (such as in the case of the shared IRQ being triggered for
the other peripheral). Cosmetic patch.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20190822211514.19288-2-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c