diff options
author | 2022-02-09 00:39:19 -0800 | |
---|---|---|
committer | 2022-02-09 13:27:17 +0000 | |
commit | 038fcdaf0470de89619bc4cc199e329391e6566c (patch) | |
tree | d7b6903e63bbef539c3be56c2434c4119ff6064f /drivers/net/ethernet/intel/ice/ice_vlan_mode.c | |
parent | net:enetc: enetc qos using the CBDR dma alloc function (diff) | |
download | linux-dev-038fcdaf0470de89619bc4cc199e329391e6566c.tar.xz linux-dev-038fcdaf0470de89619bc4cc199e329391e6566c.zip |
net: ethernet: cavium: use div64_u64() instead of do_div()
do_div() does a 64-by-32 division.
When the divisor is u64, do_div() truncates it to 32 bits, this means it
can test non-zero and be truncated to zero for division.
fix do_div.cocci warning:
do_div() does a 64-by-32 division, please consider using div64_u64 instead.
Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_vlan_mode.c')
0 files changed, 0 insertions, 0 deletions