From: Mariusz Kozlowski Date: Wed, 17 Oct 2007 06:26:45 +0000 (-0700) Subject: drivers/char/ip2/ip2main.c: kmalloc + memset conversion to kzalloc X-Git-Tag: v2.6.24-rc1~721 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=978550b828d1c29dfd65707f5d001053c3d2d610;p=linux-2.6-omap-h63xx.git drivers/char/ip2/ip2main.c: kmalloc + memset conversion to kzalloc drivers/char/ip2/ip2main.c | 104398 -> 104346 (-52 bytes) drivers/char/ip2/ip2main.o | 210710 -> 210702 (-8 bytes) Signed-off-by: Mariusz Kozlowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c index bd94d5f9e62..3300ba3c858 100644 --- a/drivers/char/ip2/ip2main.c +++ b/drivers/char/ip2/ip2main.c @@ -646,10 +646,9 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize) for ( i = 0; i < IP2_MAX_BOARDS; ++i ) { if ( ip2config.addr[i] ) { - pB = kmalloc( sizeof(i2eBordStr), GFP_KERNEL); - if ( pB != NULL ) { + pB = kzalloc(sizeof(i2eBordStr), GFP_KERNEL); + if (pB) { i2BoardPtrTable[i] = pB; - memset( pB, 0, sizeof(i2eBordStr) ); iiSetAddress( pB, ip2config.addr[i], ii2DelayTimer ); iiReset( pB ); } else {