diff options
author | 2011-04-07 15:30:13 +0000 | |
---|---|---|
committer | 2011-04-07 15:30:13 +0000 | |
commit | 88ee6abd86546d6aaff5433273d629543f1cf541 (patch) | |
tree | 8aa534e1e5ea72bfd571e672fa108ad62962c2ac /sys/dev/pci/if_ipw.c | |
parent | Move a function declaration out of the function since it is used in the next (diff) | |
download | wireguard-openbsd-88ee6abd86546d6aaff5433273d629543f1cf541.tar.xz wireguard-openbsd-88ee6abd86546d6aaff5433273d629543f1cf541.zip |
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_ipw.c')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 368a447645f..cf2c4dea18d 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipw.c,v 1.94 2010/11/15 19:11:57 damien Exp $ */ +/* $OpenBSD: if_ipw.c,v 1.95 2011/04/07 15:30:16 miod Exp $ */ /*- * Copyright (c) 2004-2008 @@ -1997,7 +1997,7 @@ ipw_init(struct ifnet *ifp) goto fail1; } - if ((error = ipw_read_firmware(sc, &fw)) != NULL) { + if ((error = ipw_read_firmware(sc, &fw)) != 0) { printf("%s: error %d, could not read firmware\n", sc->sc_dev.dv_xname, error); goto fail1; |