Re: [PATCH] i40e: remove redundant check on vsi->active_vlans

2016-02-16 Thread Shannon Nelson
On Sat, Feb 13, 2016 at 3:57 PM, Colin King wrote: > From: Colin Ian King > > 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_

[PATCH] i40e: remove redundant check on vsi->active_vlans

2016-02-13 Thread Colin King
From: Colin Ian King 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->