Skip to contentSkip to conversation

ALSA: hda: remove redundant assignment to variable timeout

PATCH Applied Colin King 2 participants 2 messages Feb 8, 2020 – Feb 10, 2020

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

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")

---
 sound/pci/hda/hda_controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/hda/hda_controller.c +1 -1
index 2609e391ce54..9765652a73d7 100644
@@ -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
Applied
#1 lore raw
Quoted 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")

Thanks, applied.

Takashi