mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-14 23:17:33 +07:00
drivers/net/sb1250-mac.c: kmalloc + memset conversion to kcalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> drivers/net/sb1250-mac.c | 76286 -> 76199 (-87 bytes) drivers/net/sb1250-mac.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
a967b14035
commit
c477f3348a
@ -780,10 +780,8 @@ static void sbdma_initctx(sbmacdma_t *d,
|
|||||||
* And context table
|
* And context table
|
||||||
*/
|
*/
|
||||||
|
|
||||||
d->sbdma_ctxtable = (struct sk_buff **)
|
d->sbdma_ctxtable = kcalloc(d->sbdma_maxdescr,
|
||||||
kmalloc(d->sbdma_maxdescr*sizeof(struct sk_buff *), GFP_KERNEL);
|
sizeof(struct sk_buff *), GFP_KERNEL);
|
||||||
|
|
||||||
memset(d->sbdma_ctxtable,0,d->sbdma_maxdescr*sizeof(struct sk_buff *));
|
|
||||||
|
|
||||||
#ifdef CONFIG_SBMAC_COALESCE
|
#ifdef CONFIG_SBMAC_COALESCE
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user