sound: Match midi_write() return values with midi_read()
Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55920
This commit is contained in:
@@ -421,7 +421,7 @@ midi_write(struct cdev *i_dev, struct uio *uio, int ioflag)
|
||||
int used;
|
||||
char buf[MIDI_WSIZE];
|
||||
|
||||
retval = 0;
|
||||
retval = EIO;
|
||||
if (m == NULL)
|
||||
goto err0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user