]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: don't use BIT() macro where the value isn't a bitmask
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 14 Apr 2016 20:17:27 +0000 (13:17 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 29 Jun 2016 16:38:59 +0000 (09:38 -0700)
commitbc14db348fa9e60bc21d6029d18b424966aa8eee
treece11ef77c01da3c8d8ea7db544c96cfb465d9e18
parent1da5c0062c737cbb5542c883b148cb251a773af2
fm10k: don't use BIT() macro where the value isn't a bitmask

The FM10K_MAX_DATA_PER_TXD is really just using a bitshift as a power of
2 operation in an efficient manner. We shouldn't represent this as a BIT()
because that obscures the intention of the operation.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k.h