]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Initialize __be16 with a __be16 value
authorAndrew Lunn <andrew@lunn.ch>
Sun, 5 Jul 2020 20:36:24 +0000 (22:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jul 2020 22:45:38 +0000 (15:45 -0700)
commit910b6e8dbd20a21cb64cc5d8e6cba2477f8f9ccd
tree65430eb1427ad04ff0497c3d1f0c388579f497cb
parent096c5738b5304ec9fc9188f03fc59fef999e1d9f
net: dsa: bcm_sf2: Initialize __be16 with a __be16 value

A __be16 variable should be initialised with a __be16 value.  So add a
htons(). In this case it is pointless, given the value being assigned
is 0xffff, but it stops sparse from warnings.

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>
drivers/net/dsa/bcm_sf2_cfp.c