summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-bcm2835.c
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-08-22 23:15:12 +0200
committerMark Brown <broonie@kernel.org>2019-08-23 13:01:29 +0200
commit1eaeba70738e723be1e5787bdfd9a30f7471d730 (patch)
tree9c6341b92ccfbf85da177d8ac96140969c3ccb51 /drivers/spi/spi-bcm2835.c
parentspi: spi-fsl-dspi: Exit the ISR with IRQ_NONE when it's not ours (diff)
downloadlinux-1eaeba70738e723be1e5787bdfd9a30f7471d730.tar.xz
linux-1eaeba70738e723be1e5787bdfd9a30f7471d730.zip
spi: spi-fsl-dspi: Remove impossible to reach error check
dspi->devtype_data is under the total control of the driver. Therefore, a bad value is a driver bug and checking it at runtime (and during an ISR, at that!) is pointless. The second "else if" check is only for clarity (instead of a broader "else") in case other transfer modes are added in the future. But the printing is dead code and can be removed. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Link: https://lore.kernel.org/r/20190822211514.19288-4-olteanv@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-bcm2835.c')
0 files changed, 0 insertions, 0 deletions