fm10k: remove extraneous NULL check on l2_accel
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 3 Jun 2015 23:31:04 +0000 (16:31 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Jun 2015 21:20:56 +0000 (14:20 -0700)
commitf1f3322eb411ce875b8b9e2de59ee8d55fb3a33b
tree167863a11e1a8d6f149b65af1c261d77d69a8019
parentc0e58e93d722a53aa26b18110389c8131af9ddd9
fm10k: remove extraneous NULL check on l2_accel

l2_accel was checked for NULL at the top of fm10k_dfwd_del_station, and
we return if it is not defined. Due to this, we already know it can't be
null here so a separate check is meaningless. Discovered via cppcheck.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c