net: octeontx: Remove unneeded test
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 5 Aug 2025 15:45:48 +0000 (16:45 +0100)
committerJerome Forissier <jerome.forissier@linaro.org>
Mon, 18 Aug 2025 12:08:57 +0000 (14:08 +0200)
commit62b4a482b943bc8173ac10a6c783e84d939b88bf
treecb90626273236cf84ae9bba6bc9624189defd866
parent45eedb7b8097793242c542b68bc5d37b298808b7
net: octeontx: Remove unneeded test

In nicvf_cq_handler there is a test for !cqe_count which will return if
true so it is guaranteed that cqe_count will true after that point. This
makes the later test for cqe_count redundant so it can be removed.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/net/octeontx/nicvf_main.c