]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: tag_sja1105: appease sparse checks for ethertype accessors
authorVladimir Oltean <olteanv@gmail.com>
Wed, 13 May 2020 00:23:27 +0000 (03:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2020 01:02:42 +0000 (18:02 -0700)
commit12f0953055630d7a84f4d23ce4a2aab0e50f1378
tree9a5578f9da2bd69b082d31d9e7f4b1f8ac36af5b
parent3dd044c934692ed095d77d79b802fe81dafe6abb
net: dsa: tag_sja1105: appease sparse checks for ethertype accessors

A comparison between a value from the packet and an integer constant
value needs to be done by converting the value from the packet from
net->host, or the constant from host->net. Not the other way around.
Even though it makes no practical difference, correct that.

Fixes: e2bce8bddc49 ("net: dsa: sja1105: prepare tagger for handling DSA tags and VLAN simultaneously")
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_sja1105.c