Browse Source

convert to zalloc

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
bb61774ee4
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/arch/i386/drivers/net/undi.c

+ 1
- 2
src/arch/i386/drivers/net/undi.c View File

@@ -72,10 +72,9 @@ static int undipci_probe ( struct pci_device *pci,
72 72
 		return -ENOTTY;
73 73
 
74 74
 	/* Allocate UNDI device structure */
75
-	undi = malloc ( sizeof ( *undi ) );
75
+	undi = zalloc ( sizeof ( *undi ) );
76 76
 	if ( ! undi )
77 77
 		return -ENOMEM;
78
-	memset ( undi, 0, sizeof ( *undi ) );
79 78
 	pci_set_drvdata ( pci, undi );
80 79
 
81 80
 	/* Find/create our pixie */

Loading…
Cancel
Save