]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: simplify retrieving the tag type from the frame header
authorAntoine Tenart <antoine.tenart@bootlin.com>
Fri, 13 Jul 2018 14:57:57 +0000 (16:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 20:43:31 +0000 (13:43 -0700)
commit106e2dceb77262994637aee8c7903570c362f9ee
tree856391730331c2b3ec2a1628abe2500d6819c9a0
parent19da38f9dcaa7e280c3e5c920c3ea2cdfe9ff240
net: mscc: simplify retrieving the tag type from the frame header

The tag type in the frame extraction header is only a bit wide. There's
no need to use GENMASK when retrieving the information. This patch
simplify the code by dropping GENMASK and using BIT instead.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_board.c