diff options
Diffstat (limited to 'lib/libsndio/sio.c')
-rw-r--r-- | lib/libsndio/sio.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libsndio/sio.c b/lib/libsndio/sio.c index 611acc8df9b..edc1fda711d 100644 --- a/lib/libsndio/sio.c +++ b/lib/libsndio/sio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio.c,v 1.22 2018/09/19 14:01:52 miko Exp $ */ +/* $OpenBSD: sio.c,v 1.23 2018/10/31 10:06:54 miko Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -294,10 +294,6 @@ sio_read(struct sio_hdl *hdl, void *buf, size_t len) hdl->eof = 1; return 0; } - if (todo == 0) { - DPRINTF("sio_read: zero length read ignored\n"); - return 0; - } while (todo > 0) { if (!sio_rdrop(hdl)) return 0; @@ -335,10 +331,6 @@ sio_write(struct sio_hdl *hdl, const void *buf, size_t len) hdl->eof = 1; return 0; } - if (todo == 0) { - DPRINTF("sio_write: zero length write ignored\n"); - return 0; - } while (todo > 0) { if (!sio_wsil(hdl)) return 0; |