fm10k: remove useless code
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 16 Jul 2015 22:05:17 +0000 (15:05 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 22 Jul 2015 10:44:41 +0000 (12:44 +0200)
The return in fm10k_dev_handle_fault has useless conditional
since it always returns 0 here.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/fm10k_ethdev.c

index 2deec31..5aa13f0 100644 (file)
@@ -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.");