i40evf: remove redundant array comparisons to 0 checks
authorColin Ian King <colin.king@canonical.com>
Mon, 19 Feb 2018 10:23:30 +0000 (10:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 26 Feb 2018 20:38:24 +0000 (12:38 -0800)
commitdeb9a9ad3ec100fa7169d0ddfbd24b1520bf26a3
treeb88164f523e4ab1a915f84d42c24b43c979072f5
parent46345b38e917bd2f27b3730adaa67e4160e1d94d
i40evf: remove redundant array comparisons to 0 checks

The checks to see if key->dst.s6_addr and key->src.s6_addr are null
pointers are redundant because these are constant size arrays and
so the checks always return true.  Fix this by removing the redundant
checks.   Also replace filter->f with vf, allowing wide lines to be
condensed and to rejoin some split wide lines.

Detected by CoverityScan, CID#1465279 ("Array compared to 0")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c