Module Name: src Committed By: pgoyette Date: Tue Jul 26 07:42:40 UTC 2016
Modified Files: src/sys/dev [pgoyette-localcount]: midi.c Log Message: Fix botched edit. To generate a diff of this commit: cvs rdiff -u -r1.85.2.1 -r1.85.2.2 src/sys/dev/midi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/midi.c diff -u src/sys/dev/midi.c:1.85.2.1 src/sys/dev/midi.c:1.85.2.2 --- src/sys/dev/midi.c:1.85.2.1 Tue Jul 26 03:24:20 2016 +++ src/sys/dev/midi.c Tue Jul 26 07:42:39 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: midi.c,v 1.85.2.1 2016/07/26 03:24:20 pgoyette Exp $ */ +/* $NetBSD: midi.c,v 1.85.2.2 2016/07/26 07:42:39 pgoyette Exp $ */ /* * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.85.2.1 2016/07/26 03:24:20 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.85.2.2 2016/07/26 07:42:39 pgoyette Exp $"); #include "midi.h" #include "sequencer.h" @@ -1598,9 +1598,8 @@ out: int midi_writebytes(int unit, u_char *bf, int cc) { - device_t self = device_lookup_acquire(&midi_cd, MIDIUNIT(dev)); + device_t self = device_lookup_acquire(&midi_cd, unit); struct midi_softc *sc; - device_lookup_private_acquire(&midi_cd, unit, &self); int error; if (self == NULL)