Re: [dpdk-dev] [PATCH] ethdev: remove useless pointer initialization

2017-01-30 Thread Thomas Monjalon
2017-01-24 21:28, Emmanuel Roullit: > Found with clang static analysis: > lib/librte_ether/rte_ethdev.c:2467:22: > warning: Value stored to 'dev' during its initialization is never read > struct rte_eth_dev *dev = &rte_eth_devices[port_id]; > ^~~ ~ > >

[dpdk-dev] [PATCH] ethdev: remove useless pointer initialization

2017-01-24 Thread Emmanuel Roullit
Found with clang static analysis: lib/librte_ether/rte_ethdev.c:2467:22: warning: Value stored to 'dev' during its initialization is never read struct rte_eth_dev *dev = &rte_eth_devices[port_id]; ^~~ ~ Fixes: 61207d014fc9 ("ethdev: fix data reset when