summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/timer-cadence-ttc.c
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-08-23 00:15:12 +0300
committerMark Brown <broonie@kernel.org>2019-08-23 12:01:29 +0100
commit1eaeba70738e723be1e5787bdfd9a30f7471d730 (patch)
tree9c6341b92ccfbf85da177d8ac96140969c3ccb51 /drivers/clocksource/timer-cadence-ttc.c
parent37b4100180641968056cb4e034cebc38338e8652 (diff)
downloadlinux-stable-1eaeba70738e723be1e5787bdfd9a30f7471d730.tar.gz
linux-stable-1eaeba70738e723be1e5787bdfd9a30f7471d730.tar.bz2
linux-stable-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/clocksource/timer-cadence-ttc.c')
0 files changed, 0 insertions, 0 deletions