diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-07 15:30:17 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-07 15:30:17 +0000 |
commit | 470f59fa3f11b7317fc5907cfef6043f2104bcc6 (patch) | |
tree | 50aedec19587d2927b807e6719da0022055c56df /sys/dev/pci/if_ix.c | |
parent | 1d2ed5cc87538f3c2a6389c586a609a8b73610b7 (diff) |
Do not use NULL in integer comparisons. No functional change.
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r-- | sys/dev/pci/if_ix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c index 7736df5cfb2..5ce67675bee 100644 --- a/sys/dev/pci/if_ix.c +++ b/sys/dev/pci/if_ix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ix.c,v 1.48 2011/04/05 18:01:21 henning Exp $ */ +/* $OpenBSD: if_ix.c,v 1.49 2011/04/07 15:30:16 miod Exp $ */ /****************************************************************************** @@ -1375,9 +1375,9 @@ ixgbe_free_pci_resources(struct ix_softc * sc) if (sc->tag[0]) pci_intr_disestablish(pa->pa_pc, sc->tag[0]); sc->tag[0] = NULL; - if (os->os_membase != NULL) + if (os->os_membase != 0) bus_space_unmap(os->os_memt, os->os_memh, os->os_memsize); - os->os_membase = NULL; + os->os_membase = 0; return; } |