diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-04-28 16:51:05 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-04-28 17:13:44 +0100 |
commit | b9663b80497d8954a2195789c91ba2f27c8e2d6b (patch) | |
tree | ab39fb8d86da9a90e4dd79b02e18ceeff3aa13bc /src/drivers/net/bnx2.c | |
parent | e5cbfefdf3dc337afc71ccd2fbe4126ee5976bfc (diff) | |
download | ipxe-b9663b80497d8954a2195789c91ba2f27c8e2d6b.tar.gz |
[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/bnx2.c')
-rw-r--r-- | src/drivers/net/bnx2.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/drivers/net/bnx2.c b/src/drivers/net/bnx2.c index a986bdef7..4ebcc52a9 100644 --- a/src/drivers/net/bnx2.c +++ b/src/drivers/net/bnx2.c @@ -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); |