audio: remove sw == NULL check
All call sites of audio_pcm_sw_write() guarantee that sw is not NULL. Remove the unnecessary NULL check. Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de> Message-Id: <20230224190555.7409-5-vr_qemu@t-online.de>
This commit is contained in:
parent
8a81abeeb2
commit
b8fc563878
|
@ -712,10 +712,6 @@ static size_t audio_pcm_sw_write(SWVoiceOut *sw, void *buf, size_t size)
|
||||||
size_t hw_free;
|
size_t hw_free;
|
||||||
size_t ret, total;
|
size_t ret, total;
|
||||||
|
|
||||||
if (!sw) {
|
|
||||||
return size;
|
|
||||||
}
|
|
||||||
|
|
||||||
hwsamples = sw->hw->mix_buf.size;
|
hwsamples = sw->hw->mix_buf.size;
|
||||||
|
|
||||||
live = sw->total_hw_samples_mixed;
|
live = sw->total_hw_samples_mixed;
|
||||||
|
|
Loading…
Reference in New Issue