qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 04/12] audio/pw: drop needless case statement


From: Volker Rümelin
Subject: Re: [PATCH 04/12] audio/pw: drop needless case statement
Date: Sun, 7 May 2023 16:58:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
  audio/pwaudio.c | 10 ----------
  1 file changed, 10 deletions(-)

Reviewed-by: Volker Rümelin <vr_qemu@t-online.de>

diff --git a/audio/pwaudio.c b/audio/pwaudio.c
index 9eb69bfd18..51cfc0b052 100644
--- a/audio/pwaudio.c
+++ b/audio/pwaudio.c
@@ -197,16 +197,6 @@ on_stream_state_changed(void *data, enum pw_stream_state 
old,
trace_pw_state_changed(pw_stream_get_node_id(v->stream),
                             pw_stream_state_as_string(state));
-
-    switch (state) {
-    case PW_STREAM_STATE_ERROR:
-    case PW_STREAM_STATE_UNCONNECTED:
-        break;
-    case PW_STREAM_STATE_PAUSED:
-    case PW_STREAM_STATE_CONNECTING:
-    case PW_STREAM_STATE_STREAMING:
-        break;
-    }
  }
static const struct pw_stream_events capture_stream_events = {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]