numam-dpdk/drivers/net/i40e
Daniel Mrzyglod 39c7226265 i40e: remove unneeded NULL check
In i40evf_config_vlan_pvid the check for NULL for the dev value is
unnecessary, since this value is passed in from the ethdev API which
will ensure that a valid rte_eth_dev structure is provided.
Furthermore, all code paths leading to this function already use the
dev value.

Issue identified by Coverity.
  Coverity ID 13302:
  There may be a null pointer dereference, or else the comparison against
  null is unnecessary.

  In i40evf_config_vlan_pvid: All paths that lead to this null pointer
  comparison already dereference the pointer earlier

Fixes: 2b12431b53 ("i40e: add vlan stripping and insertion to VF")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
2016-05-06 15:51:22 +02:00
..
base
i40e_ethdev_vf.c i40e: remove unneeded NULL check 2016-05-06 15:51:22 +02:00
i40e_ethdev.c i40e: fix packet count stats 2016-05-06 15:51:22 +02:00
i40e_ethdev.h i40evf: fix link info update 2016-04-06 15:49:17 +02:00
i40e_fdir.c i40e: remove redundant fdir forward declarations 2016-05-06 15:51:22 +02:00
i40e_logs.h
i40e_pf.c
i40e_pf.h
i40e_regs.h
i40e_rxtx_vec.c i40e: simplify SSE packet length extraction code 2016-05-06 15:51:22 +02:00
i40e_rxtx.c i40e: fix TSO 2016-04-06 15:49:17 +02:00
i40e_rxtx.h ethdev: query supported packet types 2016-03-25 18:56:43 +01:00
Makefile i40e: require SSE4.1 support for vector driver 2016-05-06 15:51:22 +02:00
rte_pmd_i40e_version.map