aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2023-02-11 15:45:50 +0000
committerGreg Kroah-Hartman <[email protected]>2023-02-16 12:50:31 +0000
commit3f92730eed57f8057e1e120a0a2e8ad04ba155d4 (patch)
treeb08f5e9b5910401021d2dd22d3844a0307fd90aa /drivers/fpga/fpga-bridge.c
parentdt-bindings: serial: snps-dw-apb-uart: add dma & dma-names properties (diff)
downloadkernel-3f92730eed57f8057e1e120a0a2e8ad04ba155d4.tar.gz
kernel-3f92730eed57f8057e1e120a0a2e8ad04ba155d4.zip
serial: imx: remove a redundant check
cpp_check reports drivers/tty/serial/imx.c:1207:15: style: Condition 'r_bytes>0' is always true [knownConditionTrueFalse] if (r_bytes > 0) { r_byte is set to r_bytes = rx_ring->head - rx_ring->tail; The head - tail calculation is also done by the earlier check if (rx_ring->head <= sg_dma_len(sgl) && rx_ring->head > rx_ring->tail) { so r_bytes will always be > 0, so the second check is not needed. Signed-off-by: Tom Rix <[email protected]> Reviewed-by: Iuliana Prodan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions