From: Adrien Mazarguil Date: Thu, 12 Oct 2017 12:19:40 +0000 (+0200) Subject: net/mlx4: remove unnecessary check X-Git-Tag: spdx-start~1346 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=74d76e7ba53cb00a5ae6c531b58623b98ee66d35;p=dpdk.git net/mlx4: remove unnecessary check Device operation callbacks are not supposed to handle a missing private data structure. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- diff --git a/drivers/net/mlx4/mlx4_ethdev.c b/drivers/net/mlx4/mlx4_ethdev.c index ebf2339d4e..661e25212a 100644 --- a/drivers/net/mlx4/mlx4_ethdev.c +++ b/drivers/net/mlx4/mlx4_ethdev.c @@ -750,8 +750,6 @@ mlx4_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *info) char ifname[IF_NAMESIZE]; info->pci_dev = RTE_ETH_DEV_TO_PCI(dev); - if (priv == NULL) - return; /* FIXME: we should ask the device for these values. */ info->min_rx_bufsize = 32; info->max_rx_pktlen = 65536;