]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:04:12 +0000 (22:04 -0800)
commit8704a514abcebee5b51111ac28b50cbe4fe73fdf
treee31201b832939de945d949583a82ded1025c96cb
parentee7ba2723d1a9b66e03459aa1fcbe4de83e8efe5
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>
Orabug: 25394529
(cherry picked from commit 124579de462e6c232c4c321c3ec1ed81964cf78b)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k.h