From 28d0cf90e0785a7dca1d55cfcbcd61c2aaf08994 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 16 Jul 2015 15:05:17 -0700 Subject: [PATCH] fm10k: remove useless code The return in fm10k_dev_handle_fault has useless conditional since it always returns 0 here. Signed-off-by: Stephen Hemminger Acked-by: Jing Chen --- 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 2deec311df..5aa13f0cfe 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -1862,8 +1862,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.20.1