summaryrefslogtreecommitdiff
path: root/sys/scsi/safte.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-08-24 02:13:56 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-08-24 02:13:56 +0000
commita6d2e02cafe4a7016f601dcc2ea9bd514da5bc45 (patch)
tree27e495d7372893e201f08a28cc880733ed9b4389 /sys/scsi/safte.c
parentecfd6aab1e812589556bd031e83dea9dcc80ca08 (diff)
KNF tweak.
Diffstat (limited to 'sys/scsi/safte.c')
-rw-r--r--sys/scsi/safte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/safte.c b/sys/scsi/safte.c
index 563a3880bd2..c739be4823e 100644
--- a/sys/scsi/safte.c
+++ b/sys/scsi/safte.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safte.c,v 1.53 2015/08/23 01:55:39 tedu Exp $ */
+/* $OpenBSD: safte.c,v 1.54 2019/08/24 02:13:55 krw Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -320,7 +320,7 @@ safte_read_config(struct safte_softc *sc)
}
sc->sc_nsensors = config->nfans + config->npwrsup + config->ntemps +
- (config->doorlock ? 1 : 0) + (config->alarm ? 1 : 0);
+ (config->doorlock ? 1 : 0) + (config->alarm ? 1 : 0);
sc->sc_sensors = mallocarray(sc->sc_nsensors, sizeof(struct safte_sensor),
M_DEVBUF, M_NOWAIT | M_ZERO);