mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-01 10:13:58 +08:00
net: qcom/emac: fix a sizeof() typo
We had intended to say "sizeof(u32)" but the "u" is missing.
Fortunately, sizeof(32) is also 4, so the original code still works.
Fixes: c4e7beea21
("net: qcom/emac: add ethtool support for reading hardware registers")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e9ea828f62
commit
2194bd1080
@ -227,7 +227,7 @@ static void emac_get_regs(struct net_device *netdev,
|
||||
|
||||
static int emac_get_regs_len(struct net_device *netdev)
|
||||
{
|
||||
return EMAC_MAX_REG_SIZE * sizeof(32);
|
||||
return EMAC_MAX_REG_SIZE * sizeof(u32);
|
||||
}
|
||||
|
||||
static const struct ethtool_ops emac_ethtool_ops = {
|
||||
|
Loading…
Reference in New Issue
Block a user