Skip to content

Commit 1f0239d

Browse files
atenartdavem330
authored andcommitted
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: Antoine Tenart <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d8c964d commit 1f0239d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

drivers/net/ethernet/mscc/ocelot.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ struct frame_info {
4545
u32 len;
4646
u16 port;
4747
u16 vid;
48-
u8 cpuq;
4948
u8 tag_type;
5049
};
5150

drivers/net/ethernet/mscc/ocelot_board.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ static int ocelot_parse_ifh(u32 *_ifh, struct frame_info *info)
3333

3434
info->port = IFH_EXTRACT_BITFIELD64(ifh[1], 43, 4);
3535

36-
info->cpuq = IFH_EXTRACT_BITFIELD64(ifh[1], 20, 8);
3736
info->tag_type = IFH_EXTRACT_BITFIELD64(ifh[1], 16, 1);
3837
info->vid = IFH_EXTRACT_BITFIELD64(ifh[1], 0, 12);
3938

0 commit comments

Comments
 (0)