On Tue, 09 Apr 2019 22:14:08 +0200 Thomas Monjalon <tho...@monjalon.net> wrote:
> 09/04/2019 21:06, Vivian Kong: > > Signed-off-by: Vivian Kong <vivk...@ca.ibm.com> > > --- > > static inline int > > eth_dev_pci_specific_init(struct rte_eth_dev *eth_dev, void *bus_device) { > > - struct rte_pci_device *pci_dev = bus_device; > > + struct rte_pci_device *pci_dev = (struct rte_pci_device *) bus_device; > > Why do we need such cast? > > I agree with Thomas, we try to avoid extra casts and there is even a script to find them.