]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: use DIV_ROUND_UP helper in ocelot_port_inject_frame
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 13 Feb 2021 22:37:53 +0000 (00:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 01:31:43 +0000 (17:31 -0800)
commit5f016f42d342b25625de51dbd14af814c35ad70e
treeba1de20d88cb3ff599711778159af236ccc32228
parenta94306cea56fe49d74cd36950858c2bcbb5de6c8
net: mscc: ocelot: use DIV_ROUND_UP helper in ocelot_port_inject_frame

This looks a bit nicer than the open-coded "(x + 3) % 4" idiom.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_net.c