Skip to contentSkip to conversation

ALSA: asihpi: remove variable loops

PATCH Applied Colin Ian King 2 participants 2 messages Oct 24, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: asihpi: remove variable loops

Variable loops is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it.

---
 sound/pci/asihpi/asihpi.c | 2 --
 1 file changed, 2 deletions(-)
sound/pci/asihpi/asihpi.c +0 -2
index 8de43aaa10aa..001786e2aba1 100644
@@ -725,7 +725,6 @@ static void snd_card_asihpi_timer_function(struct timer_list *t)
 	unsigned int pcm_buf_dma_ofs, min_buf_pos = 0;
 	unsigned int remdata, xfercount, next_jiffies;
 	int first = 1;
-	int loops = 0;
 	u16 state;
 	u32 buffer_size, bytes_avail, samples_played, on_card_bytes;
 	char name[16];
@@ -806,7 +805,6 @@ static void snd_card_asihpi_timer_function(struct timer_list *t)
 			(unsigned long)frames_to_bytes(runtime,
 						runtime->control->appl_ptr)
 		);
-		loops++;
 	}
 	pcm_buf_dma_ofs = min_buf_pos;
 
Signature · 1 line
2.37.3
Applied
#1 lore raw
Quoted 6 lines · Colin Ian King

Variable loops is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it.

Thanks, applied.

Takashi