[dpdk-dev] fm10k: remove useless code
Commit Message
The return in fm10k_dev_handle_fault has useless conditional
since it always returns 0 here.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/fm10k/fm10k_ethdev.c | 2 --
1 file changed, 2 deletions(-)
Comments
> -----Original Message-----
> From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> Sent: Friday, July 17, 2015 6:05 AM
> To: Chen, Jing D
> Cc: dev@dpdk.org; Stephen Hemminger
> 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 <stephen@networkplumber.org>
Acked-by: Jing Chen <jing.d.chen@intel.com>
> > 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>
Applied, thanks
@@ -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.");