]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: make sparse happy
authorAntoine Tenart <antoine.tenart@bootlin.com>
Fri, 22 Jun 2018 09:50:52 +0000 (11:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2018 01:42:02 +0000 (10:42 +0900)
commitcbfb38ae0b8a157d0fd7b73f1d8b0b63c86d7d43
tree29ef03e178fed8cf07eb78f99ba0cec0b9d09841
parent80f82453adf660ea965cac58d1daeefbdda81558
net: mscc: make sparse happy

This patch fixes a sparse warning about using an incorrect type in
argument 2 of ocelot_write_rix(), as an u32 was expected but a __be32
was given. The conversion to u32 is forced, which is safe as the value
will be written as-is in the hardware without any modification.

Fixes: 776cfcf621db ("net: mscc: fix the injection header")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c