]> 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)
commitc16251d3914d464c41862618623ecf2b6af9de38
tree29ef03e178fed8cf07eb78f99ba0cec0b9d09841
parent433ec96d361e6f9d90e7c5c053d52551eff9c40c
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: 7520d21b49cf ("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