OSDN Git Service

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)
commitc2cd650b5b2bd6b57f2f62be65b1a8a576d4de6d
tree29ef03e178fed8cf07eb78f99ba0cec0b9d09841
parent271f7ff5aa5a73488b7a9d8b84b5205fb5b2f7cc
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: 08d02364b12f ("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