]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit12fb61a973935c63f2580b3b053017cc14b51f42
tree4c2a72deed4fe599dc63b58cd0035cd86a82de2f
parent795227660d05e109b57896e2df1de0f012c64662
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