remove unnecessary ``return 0'' statements,
authorratchov <ratchov@openbsd.org>
Wed, 21 Jul 2010 23:00:16 +0000 (23:00 +0000)
committerratchov <ratchov@openbsd.org>
Wed, 21 Jul 2010 23:00:16 +0000 (23:00 +0000)
from Remco <remco at d-compu.dyndns.org>, thanks!

lib/libsndio/mio_rmidi.c
lib/libsndio/mio_thru.c
lib/libsndio/sun.c

index 05b11c0..194863c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: mio_rmidi.c,v 1.6 2010/04/24 06:15:54 ratchov Exp $   */
+/*     $OpenBSD: mio_rmidi.c,v 1.7 2010/07/21 23:00:16 ratchov Exp $   */
 /*
  * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
  *
@@ -136,7 +136,6 @@ rmidi_write(struct mio_hdl *sh, const void *buf, size_t len)
                if (errno != EAGAIN) {
                        DPERROR("rmidi_write: write");
                        hdl->mio.eof = 1;
-                       return 0;
                }
                return 0;
        }
index 7ce4853..24c84ea 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: mio_thru.c,v 1.9 2010/07/06 01:12:45 ratchov Exp $    */
+/*     $OpenBSD: mio_thru.c,v 1.10 2010/07/21 23:00:16 ratchov Exp $   */
 /*
  * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
  *
@@ -226,7 +226,6 @@ thru_write(struct mio_hdl *sh, const void *buf, size_t len)
                if (errno != EAGAIN) {
                        DPERROR("thru_write: write");
                        hdl->mio.eof = 1;
-                       return 0;
                }
                return 0;
        }
index 9f603d8..914fd5d 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: sun.c,v 1.38 2010/07/15 03:43:11 jakemsr Exp $        */
+/*     $OpenBSD: sun.c,v 1.39 2010/07/21 23:00:16 ratchov Exp $        */
 /*
  * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
  *
@@ -866,7 +866,6 @@ sun_write(struct sio_hdl *sh, const void *buf, size_t len)
                if (errno != EAGAIN) {
                        DPERROR("sun_write: write");
                        hdl->sio.eof = 1;
-                       return 0;
                }
                return 0;
        }