summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/midi/midibuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sound/midi/midibuf.c')
-rw-r--r--sys/dev/sound/midi/midibuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sound/midi/midibuf.c b/sys/dev/sound/midi/midibuf.c
index 7e75471..d764b68 100644
--- a/sys/dev/sound/midi/midibuf.c
+++ b/sys/dev/sound/midi/midibuf.c
@@ -125,11 +125,11 @@ midibuf_seqwrite(midi_dbuf *dbuf, u_char* data, int len, int *lenw, midi_callbac
*lenw += lwrt;
len -= lwrt;
data += lwrt;
-
- if (cb != NULL)
- (*cb)(d, reason);
}
+ if (cb != NULL)
+ (*cb)(d, reason);
+
/* Have we got still more data to write? */
if (len > 0) {
/* Sleep until we have enough space. */
OpenPOWER on IntegriCloud