diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-07-23 17:42:15 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-23 22:14:26 (GMT) |
commit | c489be085ac89895fda724242814e4fe4d5277da (patch) | |
tree | 750630611f8a10586d82b5abd2a56af6862f52d0 /drivers/net/ethernet/broadcom/genet/bcmmii.c | |
parent | 8900ea570a38740dc2769080b3bda4f90504d9e3 (diff) | |
download | linux-c489be085ac89895fda724242814e4fe4d5277da.tar.xz |
net: bcmgenet: use kcalloc instead of kzalloc
There were two places that used kzalloc() with a multiplied sizeof(),
replace these with kcalloc as recommended by checkpatch.pl.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmmii.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/genet/bcmmii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmmii.c b/drivers/net/ethernet/broadcom/genet/bcmmii.c index bdd1241..1896161 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmmii.c +++ b/drivers/net/ethernet/broadcom/genet/bcmmii.c @@ -381,7 +381,7 @@ static int bcmgenet_mii_alloc(struct bcmgenet_priv *priv) snprintf(bus->id, MII_BUS_ID_SIZE, "%s-%d", priv->pdev->name, priv->pdev->id); - bus->irq = kzalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL); + bus->irq = kcalloc(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); if (!bus->irq) { mdiobus_free(priv->mii_bus); return -ENOMEM; |