diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-11-06 16:02:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-06 21:22:55 -0800 |
commit | 4d7c47e34fab0d25790bb6e85b85e26fdf0090d5 (patch) | |
tree | 32f3e3bfe0c2b64fbd051ac40917a6e7142ef719 /drivers/net/ethernet/stmicro | |
parent | 53ba60afb165a09559f254dfa89fe300882f31d1 (diff) | |
download | linux-4d7c47e34fab0d25790bb6e85b85e26fdf0090d5.tar.bz2 |
net: stmmac: gmac4: bitrev32 returns u32
The bitrev32 function returns an u32 var, not an int. Fix it.
Fixes: 477286b53f55 ("stmmac: add GMAC4 core support")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c index 5a7b0aca1d31..66e60c7e9850 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c @@ -432,7 +432,7 @@ static void dwmac4_set_filter(struct mac_device_info *hw, * bits used depends on the hardware configuration * selected at core configuration time. */ - int bit_nr = bitrev32(~crc32_le(~0, ha->addr, + u32 bit_nr = bitrev32(~crc32_le(~0, ha->addr, ETH_ALEN)) >> (32 - mcbitslog2); /* The most significant bit determines the register to * use (H/L) while the other 5 bits determine the bit |