aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorVignesh Raghavendra <[email protected]>2019-11-09 09:48:27 +0530
committerMark Brown <[email protected]>2019-11-11 12:50:26 +0000
commit8d8584912a4348ca41653dca70f2099a82e644d9 (patch)
treea2bb0795f0be7fbbb8cc6d5e4410755fe4b40d6f /scripts/gcc-plugins/cyc_complexity_plugin.c
parentd575c9b7c8b4c5ddfb1aa75ac91fdcc20ce328c4 (diff)
spi: omap2-mcspi: Remove redundant checks
Both omap2_mcspi_tx_dma() and omap2_mcspi_rx_dma() are only called from omap2_mcspi_txrx_dma() and omap2_mcspi_txrx_dma() is always called after making sure that mcspi_dma->dma_rx and mcspi_dma->dma_tx are not NULL (see omap2_mcspi_transfer_one()). Therefore remove redundant NULL checks for omap2_mcspi->dma_tx and omap2_mcspi->dma_rx pointers in omap2_mcspi_tx_dma() and omap2_mcspi_rx_dma() respectively. Signed-off-by: Vignesh Raghavendra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions