ethdev: remove useless pointer initialization
authorEmmanuel Roullit <emmanuel.roullit@gmail.com>
Tue, 24 Jan 2017 20:28:35 +0000 (21:28 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 30 Jan 2017 09:36:18 +0000 (10:36 +0100)
commit7eb8895d405b6e5d76259faf524459030c8b8232
tree3788925a9366d06a2389c70529850159a9a04712
parent9bdfc1e5963a6a25b06347f3a8eebf9e36273de0
ethdev: remove useless pointer initialization

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: 88ac4396ad29 ("ethdev: add VMDq support")

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
lib/librte_ether/rte_ethdev.c