OSDN Git Service

net: bcmgenet: use kcalloc instead of kzalloc
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 23 Jul 2014 17:42:15 +0000 (10:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jul 2014 22:14:26 +0000 (15:14 -0700)
commitc489be085ac89895fda724242814e4fe4d5277da
tree750630611f8a10586d82b5abd2a56af6862f52d0
parent8900ea570a38740dc2769080b3bda4f90504d9e3
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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmmii.c