output/winmm: remove pointless NULL check

pcm_buffer_get() cannot ever return NULL.
This commit is contained in:
Max Kellermann 2012-02-13 18:10:09 +01:00
parent 66235fddff
commit 9c92afa5fe
1 changed files with 1 additions and 5 deletions

View File

@ -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);