Commit 9c92afa5 authored by Max Kellermann's avatar Max Kellermann

output/winmm: remove pointless NULL check

pcm_buffer_get() cannot ever return NULL.
parent 66235fdd
......@@ -200,11 +200,7 @@ winmm_set_buffer(struct winmm_output *wo, struct winmm_buffer *buffer,
GError **error_r)
{
void *dest = pcm_buffer_get(&buffer->buffer, size);
if (dest == NULL) {
g_set_error(error_r, winmm_output_quark(), 0,
"Out of memory");
return false;
}
assert(dest != NULL);
memcpy(dest, data, size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment