mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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 <m.kozlowski@tuxland.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b63d50c438
commit
978550b828
1 changed files with 2 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue