diff options
author | 2010-08-12 16:59:29 +0000 | |
---|---|---|
committer | 2010-08-12 16:59:29 +0000 | |
commit | c0d454ebfbb76f1c3a7b3a0b1a57ae60f4c96ceb (patch) | |
tree | 3d898e27b50986e2adc9de68683420a40f172cab /sys/dev/pci/if_ipw.c | |
parent | Enable periodic (every 4 minutes) power amplifier calibration (diff) | |
download | wireguard-openbsd-c0d454ebfbb76f1c3a7b3a0b1a57ae60f4c96ceb.tar.xz wireguard-openbsd-c0d454ebfbb76f1c3a7b3a0b1a57ae60f4c96ceb.zip |
homogeneous style.
no binary change.
Diffstat (limited to 'sys/dev/pci/if_ipw.c')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index e2d28eab276..b2407f5b57b 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.89 2010/08/12 15:03:59 oga Exp $ */ +/* $OpenBSD: if_ipw.c,v 1.90 2010/08/12 16:59:29 damien Exp $ */ /*- * Copyright (c) 2004-2008 @@ -311,7 +311,7 @@ ipw_activate(struct device *self, int act) break; } - return (0); + return 0; } void @@ -1402,9 +1402,9 @@ ipw_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) * Prevent processes from entering this function while another * process is tsleep'ing in it. */ - while (sc->sc_flags & IPW_FLAG_BUSY && error == 0) + while ((sc->sc_flags & IPW_FLAG_BUSY) && error == 0) error = tsleep(&sc->sc_flags, PCATCH, "ipwioc", 0); - if (error) { + if (error != 0) { splx(s); return error; } |