From 4a715e79e3f740cc4e3bd9da052d14825c46f813 Mon Sep 17 00:00:00 2001 From: Zoran Vuckovic Date: Tue, 25 Apr 2017 23:06:54 +0200 Subject: [PATCH] Code cleanup --- audio/drivers/wasapi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/audio/drivers/wasapi.c b/audio/drivers/wasapi.c index 0d20e6ffc5..c2479986d2 100644 --- a/audio/drivers/wasapi.c +++ b/audio/drivers/wasapi.c @@ -723,10 +723,7 @@ static ssize_t wasapi_write(void *wh, const void *data, size_t size) else ir = wasapi_write_sh(w, data + writen, size - writen); if (ir == -1) - { - writen = -1; - break; - } + return -1; } } else if (w->exclusive)