diff options
| author | Michael Brown | 2007-07-07 04:59:37 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-07-07 04:59:37 +0200 |
| commit | 436adb28906acf3b0549f8b628c42228a26a84bd (patch) | |
| tree | 159cab4843ef777164b6ea9f5a81cc18d405ee4d /src/drivers/net/3c509.c | |
| parent | convert to zalloc (diff) | |
| download | ipxe-436adb28906acf3b0549f8b628c42228a26a84bd.tar.gz ipxe-436adb28906acf3b0549f8b628c42228a26a84bd.tar.xz ipxe-436adb28906acf3b0549f8b628c42228a26a84bd.zip | |
Revert "convert to zalloc"
This reverts commit 68add6e814091f55e46afbef0b63f3d61f9549ba.
Diffstat (limited to 'src/drivers/net/3c509.c')
| -rw-r--r-- | src/drivers/net/3c509.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/net/3c509.c b/src/drivers/net/3c509.c index eae90b35..12cf7740 100644 --- a/src/drivers/net/3c509.c +++ b/src/drivers/net/3c509.c @@ -347,11 +347,12 @@ static int t509bus_probe ( struct root_device *rootdev ) { for ( tag = 1 ; tag <= t509_max_tag ; tag++ ) { /* Allocate struct t509_device */ if ( ! t509 ) - t509 = zalloc ( sizeof ( *t509 ) ); + t509 = malloc ( sizeof ( *t509 ) ); if ( ! t509 ) { rc = -ENOMEM; goto err; } + memset ( t509, 0, sizeof ( *t509 ) ); t509->tag = tag; /* Send the ID sequence */ |
