mirror of
https://github.com/ipxe/ipxe
synced 2026-01-02 01:42:37 +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:
@@ -895,7 +895,7 @@ static int eth_probe (struct dev *dev, unsigned short *probe_addrs __unused)
|
||||
#endif
|
||||
0 };
|
||||
/* if no addresses supplied, fall back on defaults */
|
||||
if (probe_addrs == 0 || probe_addrs[0] == 0)
|
||||
if (probe_addrs == NULL || probe_addrs[0] == 0)
|
||||
probe_addrs = base;
|
||||
eth_bmem = 0; /* No shared memory */
|
||||
for (idx = 0; (eth_nic_base = probe_addrs[idx]) != 0; ++idx) {
|
||||
|
||||
Reference in New Issue
Block a user