From: ratchov Date: Wed, 21 Jul 2010 23:00:16 +0000 (+0000) Subject: remove unnecessary ``return 0'' statements, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a22a545c0aeeabe07ee441d1704bddf4d266e401;p=openbsd remove unnecessary ``return 0'' statements, from Remco , thanks! --- diff --git a/lib/libsndio/mio_rmidi.c b/lib/libsndio/mio_rmidi.c index 05b11c03240..194863ca070 100644 --- a/lib/libsndio/mio_rmidi.c +++ b/lib/libsndio/mio_rmidi.c @@ -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 * @@ -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; } diff --git a/lib/libsndio/mio_thru.c b/lib/libsndio/mio_thru.c index 7ce4853dd7b..24c84ea26a6 100644 --- a/lib/libsndio/mio_thru.c +++ b/lib/libsndio/mio_thru.c @@ -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 * @@ -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; } diff --git a/lib/libsndio/sun.c b/lib/libsndio/sun.c index 9f603d890d6..914fd5d1d01 100644 --- a/lib/libsndio/sun.c +++ b/lib/libsndio/sun.c @@ -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 * @@ -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; }