Browse Source

convert to zalloc

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
636bd2cd0a
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/drivers/bus/isapnp.c

+ 1
- 2
src/drivers/bus/isapnp.c View File

@@ -653,12 +653,11 @@ static int isapnpbus_probe ( struct root_device *rootdev ) {
653 653
 
654 654
 			/* Allocate struct isapnp_device */
655 655
 			if ( ! isapnp )
656
-				isapnp = malloc ( sizeof ( *isapnp ) );
656
+				isapnp = zalloc ( sizeof ( *isapnp ) );
657 657
 			if ( ! isapnp ) {
658 658
 				rc = -ENOMEM;
659 659
 				goto err;
660 660
 			}
661
-			memset ( isapnp, 0, sizeof ( *isapnp ) );
662 661
 			isapnp->csn = csn;
663 662
 			isapnp->logdev = logdev;
664 663
 

Loading…
Cancel
Save