The return in fm10k_dev_handle_fault has useless conditional since it always returns 0 here.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org> --- drivers/net/fm10k/fm10k_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 902ccae..493b6f9 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -1793,8 +1793,6 @@ fm10k_dev_handle_fault(struct fm10k_hw *hw, uint32_t eicr) fault.address, fault.specinfo); } - if (estr) - return 0; return 0; error: PMD_INIT_LOG(ERR, "Failed to handle fault event."); -- 2.1.4