]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: don't use OR to check a value
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 16 Apr 2014 01:21:40 +0000 (01:21 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 5 Jun 2014 08:20:06 +0000 (01:20 -0700)
commit490fcf24d2d6a1bf053406f5e435bd628fd19786
tree803803b3146b1ee63d60823a45eacb5dbd1faae0
parent3f0d8f24aefed1bc2afd7b42585838c55f0dcdc0
i40e: don't use OR to check a value

A couple of FD checks ended up using bitwise OR to check
a value, which ends up always being evaluated to true.

This should fix the issue.  Thanks to DaveJ for noticing
and reporting the issue!

CC: Dave Jones <davej@redhat.com>
Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c