From 807fa19319aa77af7b410f4518bb48ad452434bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 20 Jan 2022 02:45:22 +0100 Subject: [PATCH] pulse-server: module-combine-sink: remove unnecessary conditional After dequeueing the buffer, the code immediately checks if it is NULL, and never modifies the variable. Therefore there is no need to check again when the buffer is enqueued. --- .../module-protocol-pulse/modules/module-combine-sink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/module-protocol-pulse/modules/module-combine-sink.c b/src/modules/module-protocol-pulse/modules/module-combine-sink.c index 495f76af3..d75381097 100644 --- a/src/modules/module-protocol-pulse/modules/module-combine-sink.c +++ b/src/modules/module-protocol-pulse/modules/module-combine-sink.c @@ -166,8 +166,7 @@ static void capture_process(void *d) pw_stream_queue_buffer(data->streams[i].stream, out); } - if (in != NULL) - pw_stream_queue_buffer(data->sink, in); + pw_stream_queue_buffer(data->sink, in); } static void check_initialized(struct module_combine_sink_data *data)