aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/audio.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/audio/audio.c b/audio/audio.c
index 4412b5fad8..8f1c0e77b0 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -712,10 +712,6 @@ static size_t audio_pcm_sw_write(SWVoiceOut *sw, void *buf, size_t size)
size_t hw_free;
size_t ret, total;
- if (!sw) {
- return size;
- }
-
hwsamples = sw->hw->mix_buf.size;
live = sw->total_hw_samples_mixed;