aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/bios/apm.c
diff options
context:
space:
mode:
authorMitsuru IWASAKI <iwasaki@FreeBSD.org>1999-07-22 14:45:22 +0000
committerMitsuru IWASAKI <iwasaki@FreeBSD.org>1999-07-22 14:45:22 +0000
commitc0039f8e428317547c54055af9cd3ea55f92488f (patch)
treec5a8bf5094ecf5359282a6fbaa0c4bba8faed7cf /sys/i386/bios/apm.c
parent98ae496f7f558ecdd0a54f6c5677c755acf9665e (diff)
downloadsrc-c0039f8e428317547c54055af9cd3ea55f92488f.tar.gz
src-c0039f8e428317547c54055af9cd3ea55f92488f.zip
Add braces to make if-else statement clearer.
PR: 12663 Submitted by: Adam Wight <adamw@holonet.net>
Notes
Notes: svn path=/head/; revision=48984
Diffstat (limited to 'sys/i386/bios/apm.c')
-rw-r--r--sys/i386/bios/apm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c
index fbdf89ad5e13..7e4692afbd45 100644
--- a/sys/i386/bios/apm.c
+++ b/sys/i386/bios/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);
}