summaryrefslogtreecommitdiffstats
path: root/sys/dev/midi.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2010-11-18 21:15:13 +0000
committermiod <miod@openbsd.org>2010-11-18 21:15:13 +0000
commitbc78e6577d23f89fbc930e978910cfbad5de0bb8 (patch)
treed1b8af216a7a90d4ba9f627c331264bdc7fac04d /sys/dev/midi.c
parentDo not #include <sys/dkstat.h> if you don't need anything from it. (diff)
downloadwireguard-openbsd-bc78e6577d23f89fbc930e978910cfbad5de0bb8.tar.xz
wireguard-openbsd-bc78e6577d23f89fbc930e978910cfbad5de0bb8.zip
Don't
#include "foo.h" #if NFOO > 0 (whole file) #endif since config(8) file inclusion rules already do it for you. ok deraadt@
Diffstat (limited to 'sys/dev/midi.c')
-rw-r--r--sys/dev/midi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c
index a6032faa670..fb909465f5d 100644
--- a/sys/dev/midi.c
+++ b/sys/dev/midi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midi.c,v 1.22 2010/04/08 01:48:24 fgsch Exp $ */
+/* $OpenBSD: midi.c,v 1.23 2010/11/18 21:15:14 miod Exp $ */
/*
* Copyright (c) 2003, 2004 Alexandre Ratchov
@@ -24,9 +24,7 @@
* need this driver
*/
-#include "midi.h"
#include "sequencer.h"
-#if NMIDI > 0
#include <sys/param.h>
#include <sys/fcntl.h>
@@ -759,4 +757,3 @@ midi_writebytes(int unit, unsigned char *mesg, int mesglen)
}
#endif /* NSEQUENCER > 0 */
-#endif /* NMIDI > 0 */