OSDN Git Service

net: ethernet: Use DIV_ROUND_UP instead of reimplementing its function
authorzhong jiang <zhongjiang@huawei.com>
Tue, 11 Sep 2018 13:08:15 +0000 (21:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 03:34:47 +0000 (20:34 -0700)
commitf8a1988f655192ae8ea6e1d940706a8340924bbc
tree6204f0a1b89706cc0b513394e74eabae8c369c0d
parentdb3df242bc4407ce92fdd0ec429e15bcfb961b00
net: ethernet: Use DIV_ROUND_UP instead of reimplementing its function

DIV_ROUND_UP has implemented the code-opened function. Therefore, just
replace the implementation with DIV_ROUND_UP.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Acked-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/sb1250-mac.c
drivers/net/ethernet/cavium/liquidio/octeon_droq.c
drivers/net/ethernet/freescale/gianfar_ethtool.c
drivers/net/ethernet/ibm/emac/mal.h
drivers/net/ethernet/mellanox/mlx4/alloc.c
drivers/net/ethernet/mellanox/mlx4/icm.c
drivers/net/ethernet/mellanox/mlx5/core/srq.c
drivers/net/ethernet/neterion/s2io.c