]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r286887: Using the error return code documented in the comment.
authoravatar <avatar@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 1 Sep 2015 22:35:53 +0000 (22:35 +0000)
committeravatar <avatar@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 1 Sep 2015 22:35:53 +0000 (22:35 +0000)
commitdc0deb4fe617ecf01093c38ab946dd313defdb29
tree2dc7e29cab1f595ba965010669afe5d6eea17f3c
parent91d029863b449c042af2f19a93ad0455985e17e8
MFC r286887: Using the error return code documented in the comment.

Though there is no direct midi_uninit() caller amongst existing drivers
at this moment, a quick experiment indicates that EBUSY gives users more
precise error message once drivers start to honour this result.  For example,
emu_midi_detach() should check the result of mpu401_uninit() and block
module unloading if there is any MIDI I/O in progress.

git-svn-id: svn://svn.freebsd.org/base/stable/10@287388 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sound/midi/midi.c