summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJoerg Jung <jung@cvs.openbsd.org>2015-10-10 11:57:21 +0000
committerJoerg Jung <jung@cvs.openbsd.org>2015-10-10 11:57:21 +0000
commitf978edf4635757b6d6489c6af83826f93b4babf1 (patch)
treea1889597e149cc84db2ce3f0f41a27f9165bfe71 /sys/dev
parent719b188baefd90fd9710c0ab043902a3f393b376 (diff)
fix wrong brackets in if statement
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/asmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/asmc.c b/sys/dev/isa/asmc.c
index 1ca71dfa59d..40c7258803d 100644
--- a/sys/dev/isa/asmc.c
+++ b/sys/dev/isa/asmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asmc.c,v 1.8 2015/10/04 20:00:50 jung Exp $ */
+/* $OpenBSD: asmc.c,v 1.9 2015/10/10 11:57:20 jung Exp $ */
/*
* Copyright (c) 2015 Joerg Jung <jung@openbsd.org>
*
@@ -467,7 +467,7 @@ asmc_lights(struct asmc_softc *sc, uint8_t *n)
s = 0;
snprintf(key, sizeof(key), "ALV%d", i);
if (asmc_try(sc, ASMC_READ, key, buf, 6) &&
- (s = asmc_status(sc) != ASMC_NOTFOUND)) {
+ (s = asmc_status(sc)) != ASMC_NOTFOUND) {
printf(", read %s failed (0x%x)", key, s);
return 1;
}