]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: don't do arithmetic operations on bitmasks
authorEmil Tantilov <emil.s.tantilov@intel.com>
Tue, 5 Feb 2013 09:43:26 +0000 (09:43 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Apr 2013 04:24:59 +0000 (21:24 -0700)
commitfbb7b7b47597c6b1dbb04b34c68b307d269b7873
tree8a53f798b5395b17760b02d8617f3cd0b31e8346
parentcdad179ee86361711c9e6940a54d2a5ec392ae61
ixgbe: don't do arithmetic operations on bitmasks

Make the calculation of eerd consistent between the read and write functions
by using | instead of + for IXGBE_EEPROM_RW_REG_START

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c