ALSA: hda: remove redundant assignment to variable timeout
Subsystems (2)
PATCH 1/1 ALSA: hda: remove redundant assignment to variable timeout
From: Colin Ian King <[email protected]>
Variable timeout is being assigned with the value 200 that is never read, it is assigned a new value in a following do-loop. The assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
--- sound/pci/hda/hda_controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/hda/hda_controller.c +1 -1
@@ -373,7 +373,7 @@ static int azx_get_sync_time(ktime_t *device,u32 wallclk_ctr, wallclk_cycles;bool direction;u32 dma_select; -u32 timeout =200 ; +u32 timeout;u32 retry_count =0 ; runtime = substream->runtime;
Signature · 1 line
2.25.0
Takashi Iwai
AppliedQuoted 9 lines · Colin King
From: Colin Ian King <[email protected]>
Variable timeout is being assigned with the value 200 that is never read, it is assigned a new value in a following do-loop. The assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
Thanks, applied.
Takashi