]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i40e: remove redundant check on vsi->active_vlans
authorColin King <colin.king@canonical.com>
Sat, 13 Feb 2016 23:57:16 +0000 (23:57 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 6 Apr 2016 01:52:14 +0000 (18:52 -0700)
commitafb8ece4326f2151771f4c40b8d9f799cee5ae6e
tree3bc89a3216a745e044968e44139a764221ee3fd2
parent4da46cebbd3b4dc445195a9672c99c1353af5695
i40e: remove redundant check on vsi->active_vlans

active_vlans is an unsigned long array, hence a null check on this
array is superfluous and can be removed.

Detected with static analysis by smatch:

drivers/net/ethernet/intel/i40e/i40e_debugfs.c:386
  i40e_dbg_dump_vsi_seid() warn: this array is probably
  non-NULL. 'vsi->active_vlans'

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c