Skip to content

Commit

Permalink
net/pfe: remove unnecessary null check
Browse files Browse the repository at this point in the history
[ upstream commit 01bfb51 ]

ethdev library does the check of dev before calling the link update.

Fixes: acd4818 ("net/pfe: add link status update")

Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>
Acked-by: Gagandeep Singh <g.singh@nxp.com>
  • Loading branch information
herbelot authored and cpaelzer committed Aug 9, 2021
1 parent 55d2050 commit 704a331
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/pfe/pfe_ethdev.c
Expand Up @@ -583,11 +583,6 @@ pfe_eth_link_update(struct rte_eth_dev *dev, int wait_to_complete __rte_unused)
struct rte_eth_link link, old;
unsigned int lstatus = 1;

if (dev == NULL) {
PFE_PMD_ERR("Invalid device in link_update.\n");
return 0;
}

memset(&old, 0, sizeof(old));
memset(&link, 0, sizeof(struct rte_eth_link));

Expand Down

0 comments on commit 704a331

Please sign in to comment.