diff options
author | Petri Latvala <petri.latvala@intel.com> | 2019-01-16 13:20:42 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-01-21 13:51:01 +0200 |
commit | d979b493e1378408985bdea928136e3a5698228e (patch) | |
tree | 33236834806d9f6d16bcdb04033b702ae476bd16 /lib/igt_alsa.c | |
parent | 72964897ce92525ea62e1e1b1b7df24b6c6125dd (diff) |
lib/igt_alsa: Remove dead assignment
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>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Diffstat (limited to 'lib/igt_alsa.c')
-rw-r--r-- | lib/igt_alsa.c | 2 |
1 files changed, 0 insertions, 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; |