]> 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)
commit02e9582a2e0168b0f1b7a4911cec56e77562c007
tree4c2a72deed4fe599dc63b58cd0035cd86a82de2f
parent96c73ce40b4ede9124e56838932fe8eada59ed0f
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