diff options
author | iwasaki <iwasaki@FreeBSD.org> | 1999-07-22 14:45:22 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 1999-07-22 14:45:22 +0000 |
commit | 1d549b565782e9fc01915f4a870ce987a6e3785e (patch) | |
tree | e2b075ab4ea6c9c1eec48d95f11a42a41759ba19 /sys/i386/apm | |
parent | 9fd8ecafa7af9d5d66896900b69bcb54e6cca824 (diff) | |
download | FreeBSD-src-1d549b565782e9fc01915f4a870ce987a6e3785e.zip FreeBSD-src-1d549b565782e9fc01915f4a870ce987a6e3785e.tar.gz |
Add braces to make if-else statement clearer.
PR: 12663
Submitted by: Adam Wight <adamw@holonet.net>
Diffstat (limited to 'sys/i386/apm')
-rw-r--r-- | sys/i386/apm/apm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c index fbdf89a..7e4692a 100644 --- a/sys/i386/apm/apm.c +++ b/sys/i386/apm/apm.c @@ -15,7 +15,7 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.89 1999/07/04 14:58:29 phk Exp $ + * $Id: apm.c,v 1.90 1999/07/10 18:08:48 iwasaki Exp $ */ #include "opt_devfs.h" @@ -1283,11 +1283,13 @@ apmpoll(dev_t dev, int events, struct proc *p) struct apm_softc *sc = &apm_softc; int revents = 0; - if (events & (POLLIN | POLLRDNORM)) - if (sc->event_count) + if (events & (POLLIN | POLLRDNORM)) { + if (sc->event_count) { revents |= events & (POLLIN | POLLRDNORM); - else + } else { selrecord(p, &sc->sc_rsel); + } + } return (revents); } |