summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/tlan.c
diff options
context:
space:
mode:
authorMichael Brown2013-04-28 17:51:05 +0200
committerMichael Brown2013-04-28 18:13:44 +0200
commitb9663b80497d8954a2195789c91ba2f27c8e2d6b (patch)
treeab39fb8d86da9a90e4dd79b02e18ceeff3aa13bc /src/drivers/net/tlan.c
parent[build] Use -Wno-decl when running sparse (diff)
downloadipxe-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/tlan.c')
-rw-r--r--src/drivers/net/tlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/net/tlan.c b/src/drivers/net/tlan.c
index 74398df42..7742f6d80 100644
--- a/src/drivers/net/tlan.c
+++ b/src/drivers/net/tlan.c
@@ -94,7 +94,7 @@ static void TLan_MiiWriteReg(struct nic *nic __unused, u16, u16, u16);
static const char *media[] = {
"10BaseT-HD ", "10BaseT-FD ", "100baseTx-HD ",
- "100baseTx-FD", "100baseT4", 0
+ "100baseTx-FD", "100baseT4", NULL
};
/* This much match tlan_pci_tbl[]! */
@@ -164,7 +164,7 @@ static const struct pci_id_info tlan_pci_tbl[] = {
{"Compaq NetFlex-3/E", 0, /* EISA card */
{0, 0, 0, 0, 0, 0},
TLAN_ADAPTER_ACTIVITY_LED, 0x83},
- {0, 0,
+ {NULL, 0,
{0, 0, 0, 0, 0, 0},
0, 0},
};