mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 17:34:42 +03:00
[build] Fix uses of literal 0 as a NULL pointer
Detected using sparse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user