]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Make sure boolean assignments from bitwise operations done correctly
authorPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Thu, 16 Jul 2009 15:50:32 +0000 (15:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2009 16:47:35 +0000 (09:47 -0700)
commit7dfa9d8d17b8af284faee8f3a43c0767f93e8d55
tree9b2f1cef5a6d0c0d8d3653cd8d8f77e5d0401fc9
parent4556a197f4282a1eb02f6565548cbc319ca985e5
ixgbe: Make sure boolean assignments from bitwise operations done correctly

When the link comes up, the driver detects which flow control settings are
active.  This is done using bitwise operations directly from the hardware
registers, and assumes the proper boolean assignment.  Make this an
explicit boolean value before assignment to the bool.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c