This issue was reported by PVS studio, described as: https://pvs-studio.com/en/docs/warnings/v560/
Signed-off-by: Rong Qian <qi...@yunsilicon.com> Signed-off-by: Renyong Wan <wa...@yunsilicon.com> --- drivers/net/xsc/xsc_rx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/xsc/xsc_rx.c b/drivers/net/xsc/xsc_rx.c index dfb71ed087..c031e56a94 100644 --- a/drivers/net/xsc/xsc_rx.c +++ b/drivers/net/xsc/xsc_rx.c @@ -42,8 +42,6 @@ xsc_rx_poll_len(struct xsc_rxq_data *rxq, volatile struct xsc_cqe *cqe) if (unlikely(ret != XSC_CQE_OWNER_SW)) { if (unlikely(ret == XSC_CQE_OWNER_ERR)) { ++rxq->stats.rx_errors; - if (ret == XSC_CQE_OWNER_HW || ret == -1) - return 0; } else { return 0; } -- 2.25.1