summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/tulip.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/tulip.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/tulip.c')
-rw-r--r--src/drivers/net/tulip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/net/tulip.c b/src/drivers/net/tulip.c
index 7a23b7e9..e4e6ffa8 100644
--- a/src/drivers/net/tulip.c
+++ b/src/drivers/net/tulip.c
@@ -228,7 +228,7 @@ static const struct pci_id_info pci_id_tbl[] = {
TULIP_IOTYPE, TULIP_SIZE, COMET },
{ "SG Thomson STE10/100A", { 0x2774104a, 0xffffffff, 0, 0, 0, 0 },
TULIP_IOTYPE, 256, COMET }, /*Ramesh Chander*/
- { 0, { 0, 0, 0, 0, 0, 0 }, 0, 0, 0 },
+ { NULL, { 0, 0, 0, 0, 0, 0 }, 0, 0, 0 },
};
enum tbl_flag {
@@ -264,7 +264,7 @@ static struct tulip_chip_table {
{ "Xircom tulip work-alike", HAS_MII | HAS_MEDIA_TABLE | ALWAYS_CHECK_MII
| HAS_PWRDWN | HAS_NWAY },
{ "SGThomson STE10/100A", HAS_MII | MC_HASH_ONLY }, /*Ramesh Chander*/
- { 0, 0 },
+ { NULL, 0 },
};
/* A full-duplex map for media types. */
@@ -475,7 +475,7 @@ static struct fixups {
0x1B03, 0x006D, /* 100baseTx, CSR12 0x1B */
0x1B05, 0x006D, /* 100baseTx-FD CSR12 0x1B */
}},
- {0, 0, 0, 0, {}}};
+ {NULL, 0, 0, 0, {}}};
static const char * block_name[] = {"21140 non-MII", "21140 MII PHY",
"21142 Serial PHY", "21142 MII PHY", "21143 SYM PHY", "21143 reset method"};
@@ -720,7 +720,7 @@ static void parse_eeprom(struct nic *nic)
whereami("parse_eeprom\n");
- tp->mtable = 0;
+ tp->mtable = NULL;
/* Detect an old-style (SA only) EEPROM layout:
memcmp(ee_data, ee_data+16, 8). */
for (i = 0; i < 8; i ++)