Commit 1f0239de authored by Antoine Tenart's avatar Antoine Tenart Committed by David S. Miller

net: mscc: remove the frame_info cpuq member

In struct frame_info, the cpuq member is never used. This cosmetic patch
removes it from the structure, and from the parsing of the frame header
as it's only set but never used.
Signed-off-by: default avatarAntoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d8c964dc
...@@ -45,7 +45,6 @@ struct frame_info { ...@@ -45,7 +45,6 @@ struct frame_info {
u32 len; u32 len;
u16 port; u16 port;
u16 vid; u16 vid;
u8 cpuq;
u8 tag_type; u8 tag_type;
}; };
......
...@@ -33,7 +33,6 @@ static int ocelot_parse_ifh(u32 *_ifh, struct frame_info *info) ...@@ -33,7 +33,6 @@ static int ocelot_parse_ifh(u32 *_ifh, struct frame_info *info)
info->port = IFH_EXTRACT_BITFIELD64(ifh[1], 43, 4); info->port = IFH_EXTRACT_BITFIELD64(ifh[1], 43, 4);
info->cpuq = IFH_EXTRACT_BITFIELD64(ifh[1], 20, 8);
info->tag_type = IFH_EXTRACT_BITFIELD64(ifh[1], 16, 1); info->tag_type = IFH_EXTRACT_BITFIELD64(ifh[1], 16, 1);
info->vid = IFH_EXTRACT_BITFIELD64(ifh[1], 0, 12); info->vid = IFH_EXTRACT_BITFIELD64(ifh[1], 0, 12);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment