diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-07-31 17:58:36 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:50:21 -0400 |
commit | c477f3348abb5f6fb8b627cfdb1d7ae4b8fe613b (patch) | |
tree | 04bf186c7ad93ef67cda677de6d86e462fc13679 /drivers | |
parent | a967b14035c5efe4c92623dde3776ffc7a79118c (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/sb1250-mac.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/sb1250-mac.c b/drivers/net/sb1250-mac.c index 53845ebb649f..b6cafac97200 100644 --- a/drivers/net/sb1250-mac.c +++ b/drivers/net/sb1250-mac.c | |||
@@ -780,10 +780,8 @@ static void sbdma_initctx(sbmacdma_t *d, | |||
780 | * And context table | 780 | * And context table |
781 | */ | 781 | */ |
782 | 782 | ||
783 | d->sbdma_ctxtable = (struct sk_buff **) | 783 | d->sbdma_ctxtable = kcalloc(d->sbdma_maxdescr, |
784 | kmalloc(d->sbdma_maxdescr*sizeof(struct sk_buff *), GFP_KERNEL); | 784 | sizeof(struct sk_buff *), GFP_KERNEL); |
785 | |||
786 | memset(d->sbdma_ctxtable,0,d->sbdma_maxdescr*sizeof(struct sk_buff *)); | ||
787 | 785 | ||
788 | #ifdef CONFIG_SBMAC_COALESCE | 786 | #ifdef CONFIG_SBMAC_COALESCE |
789 | /* | 787 | /* |