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)
commit495083807f2007af7a29ea72768866f747021a98
tree856391730331c2b3ec2a1628abe2500d6819c9a0
parentbc1b50309ce19bb2ccb1340fa83ab56ca6da8f96
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