]> git.karo-electronics.de Git - linux-beck.git/commit
igbvf: use BIT() macro instead of shifts
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 13 Apr 2016 23:08:31 +0000 (16:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 13 May 2016 22:12:03 +0000 (15:12 -0700)
commit0ed2dbf4f469e2e286d903ebc091edfd9be4d063
tree83d66d7ed1cc842f76f266ca8a4ac97b02e1f80b
parent12b28b41084aa61970fecb417c66c88dcce6afed
igbvf: use BIT() macro instead of shifts

To prevent signed bitshift issues, and improve code readability, use the
BIT() macro. Also make use of GENMASK or the unsigned postfix where this
is more appropriate than BIT()

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igbvf/defines.h
drivers/net/ethernet/intel/igbvf/ethtool.c
drivers/net/ethernet/intel/igbvf/igbvf.h
drivers/net/ethernet/intel/igbvf/netdev.c
drivers/net/ethernet/intel/igbvf/vf.c