http://git.etherboot.org
/
people
/
andreif
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d0332b
)
convert to zalloc
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Sun, 17 Jun 2007 23:24:44 +0000
(
01:24
+0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 18:19:55 +0000
(20:19 +0200)
src/core/hw.c
patch
|
blob
|
history
diff --git
a/src/core/hw.c
b/src/core/hw.c
index
a3eb850
..
64258b8
100644
(file)
--- a/
src/core/hw.c
+++ b/
src/core/hw.c
@@
-56,10
+56,9
@@
static int hw_open ( struct xfer_interface *xfer, struct uri *uri __unused ) {
struct hw *hw;
/* Allocate and initialise structure */
- hw =
m
alloc ( sizeof ( *hw ) );
+ hw =
z
alloc ( sizeof ( *hw ) );
if ( ! hw )
return -ENOMEM;
- memset ( hw, 0, sizeof ( *hw ) );
xfer_init ( &hw->xfer, &hw_xfer_operations, &hw->refcnt );
process_init ( &hw->process, hw_step, &hw->refcnt );