summaryrefslogtreecommitdiff
path: root/lib/libsndio/mio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libsndio/mio.c')
-rw-r--r--lib/libsndio/mio.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/libsndio/mio.c b/lib/libsndio/mio.c
index 879ff656061..ddab5a4e0c8 100644
--- a/lib/libsndio/mio.c
+++ b/lib/libsndio/mio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mio.c,v 1.21 2018/09/19 14:01:52 miko Exp $ */
+/* $OpenBSD: mio.c,v 1.22 2018/10/31 10:06:54 miko Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -128,10 +128,6 @@ mio_read(struct mio_hdl *hdl, void *buf, size_t len)
hdl->eof = 1;
return 0;
}
- if (len == 0) {
- DPRINTF("mio_read: zero length read ignored\n");
- return 0;
- }
while (todo > 0) {
n = hdl->ops->read(hdl, data, todo);
if (n == 0 && hdl->eof)
@@ -162,14 +158,6 @@ mio_write(struct mio_hdl *hdl, const void *buf, size_t len)
hdl->eof = 1;
return 0;
}
- if (len == 0) {
- DPRINTF("mio_write: zero length write ignored\n");
- return 0;
- }
- if (todo == 0) {
- DPRINTF("mio_write: zero length write ignored\n");
- return 0;
- }
while (todo > 0) {
n = hdl->ops->write(hdl, data, todo);
if (n == 0) {