[igt-dev] [PATCH i-g-t 13/21] lib/igt_alsa: Remove dead assignment

Petri Latvala
2019-01-16T11:21:03Z

The execution can only reach the end (goto complete) or the new
unconditional assignment a few lines below before the value is read
again. Either it's really a dead assignment, or there's a bug with the
execution flow. Leaning on the former.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
---
lib/igt_alsa.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/lib/igt_alsa.c b/lib/igt_alsa.c
index 3ad0521a..bb6682cc 100644
--- a/lib/igt_alsa.c
+++ b/lib/igt_alsa.c
@@ -523,8 +523,6 @@ int alsa_run(struct alsa *alsa, int duration_ms)
reached = false;

if (!output_ready) {
- output_ready = true;
-
for (i = 0; i < alsa->output_handles_count; i++)
output_counts[i] = 0;

--
2.19.1