net: dsa: tag_qca.c: Fix warning for __be16 vs u16
authorAndrew Lunn <andrew@lunn.ch>
Sun, 5 Jul 2020 19:30:08 +0000 (21:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jul 2020 22:31:58 +0000 (15:31 -0700)
commit99bac53d069a05dc680b3aa82614f964bc12f5f9
tree62b7c6c2a2e4085e0f0cecfdccf2b1c8aff02451
parent04d63f9d91d018d4ec31832677f4045706defc18
net: dsa: tag_qca.c: Fix warning for __be16 vs u16

net/dsa/tag_qca.c:48:15: warning: incorrect type in assignment (different base types)
net/dsa/tag_qca.c:48:15:    expected unsigned short [usertype]
net/dsa/tag_qca.c:48:15:    got restricted __be16 [usertype]
net/dsa/tag_qca.c:68:13: warning: incorrect type in assignment (different base types)
net/dsa/tag_qca.c:68:13:    expected restricted __be16 [usertype] hdr
net/dsa/tag_qca.c:68:13:    got int
net/dsa/tag_qca.c:71:16: warning: restricted __be16 degrades to integer
net/dsa/tag_qca.c:81:17: warning: restricted __be16 degrades to integer

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_qca.c