Revert "net: ethernet: cavium: use div64_u64() instead of do_div()"
authorJakub Kicinski <kuba@kernel.org>
Fri, 11 Feb 2022 02:05:44 +0000 (18:05 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 12 Feb 2022 00:54:47 +0000 (16:54 -0800)
commitf126ec9d6e57729b3f7fad5d0e38bacfb81c8254
tree01fc3de62d78a7a157d278568480c4c8fcf54c67
parentc9ac080b25d98dbbea6caa165bfc0b88a88458cc
Revert "net: ethernet: cavium: use div64_u64() instead of do_div()"

This reverts commit 038fcdaf0470de89619bc4cc199e329391e6566c.

Christophe points out div64_u64() and do_div() have different
calling conventions. One updates the param, the other returns
the result.

Reported-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/all/056a7276-c6f0-cd7e-9e46-1d8507a0b6b1@wanadoo.fr/
Fixes: 038fcdaf0470 ("net: ethernet: cavium: use div64_u64() instead of do_div()")
Link: https://lore.kernel.org/r/20220211020544.3262694-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cavium/liquidio/lio_main.c