diff options
author | Michael Brown | 2013-04-28 17:51:05 +0200 |
---|---|---|
committer | Michael Brown | 2013-04-28 18:13:44 +0200 |
commit | b9663b80497d8954a2195789c91ba2f27c8e2d6b (patch) | |
tree | ab39fb8d86da9a90e4dd79b02e18ceeff3aa13bc /src/drivers/net/prism2.c | |
parent | [build] Use -Wno-decl when running sparse (diff) | |
download | ipxe-b9663b80497d8954a2195789c91ba2f27c8e2d6b.tar.gz ipxe-b9663b80497d8954a2195789c91ba2f27c8e2d6b.tar.xz ipxe-b9663b80497d8954a2195789c91ba2f27c8e2d6b.zip |
[build] Fix uses of literal 0 as a NULL pointer
Detected using sparse.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/prism2.c')
-rw-r--r-- | src/drivers/net/prism2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/drivers/net/prism2.c b/src/drivers/net/prism2.c index ad388074..ab974264 100644 --- a/src/drivers/net/prism2.c +++ b/src/drivers/net/prism2.c @@ -130,9 +130,7 @@ typedef struct hfa384x } hfa384x_t; /* The global instance of the hardware (i.e. where we store iobase and membase, in the absence of anywhere better to put them */ -static hfa384x_t hw_global = { - 0, 0, 0, 0, 0, 0, 0, {0,0,0,0,0,0} -}; +static hfa384x_t hw_global; /* * 802.11 headers in addition to those in hfa384x_tx_frame_t (LLC and SNAP) |