From: Stephen Hemminger Date: Thu, 16 Jul 2015 22:05:17 +0000 (-0700) Subject: fm10k: remove useless code X-Git-Tag: spdx-start~8663 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=28d0cf90e0785a7dca1d55cfcbcd61c2aaf08994;p=dpdk.git 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 --- 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.");