net/mlx4: remove unnecessary check
Device operation callbacks are not supposed to handle a missing private data structure. Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
This commit is contained in:
parent
fc4e66649a
commit
74d76e7ba5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user