ethdev: remove impossible condition
authorStephen Hemminger <shemming@brocade.com>
Sat, 27 Jun 2015 00:01:42 +0000 (17:01 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 2 Jul 2015 10:26:19 +0000 (12:26 +0200)
commitd0e87747cca240e537174c06e878a17a43085539
tree674eff98d952db37d8d44d3565870a6b4cfe39f2
parentf10e076bf013dc0a75873be85fb17f6645b2e858
ethdev: remove impossible condition

Since rte_eth_devices is in BSS, the address of rte_eth_devices
plus port_id can not ever be NULL for a valid port_id number.
Remove this unnecessary check and fix the code style.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_ether/rte_ethdev.c