mirror of
https://github.com/ipxe/ipxe
synced 2026-01-15 11:49:45 +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:
@@ -2617,9 +2617,6 @@ bnx2_probe(struct nic *nic, struct pci_device *pdev)
|
||||
struct bnx2 *bp = &bnx2;
|
||||
int i, rc;
|
||||
|
||||
if (pdev == 0)
|
||||
return 0;
|
||||
|
||||
memset(bp, 0, sizeof(*bp));
|
||||
|
||||
rc = bnx2_init_board(pdev, nic);
|
||||
|
||||
Reference in New Issue
Block a user