Skip to content

Commit 2b4e275

Browse files
ColinIanKingtiwai
authored andcommitted
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. Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 72457b3 commit 2b4e275

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sound/pci/asihpi/asihpi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,6 @@ static void snd_card_asihpi_timer_function(struct timer_list *t)
725725
unsigned int pcm_buf_dma_ofs, min_buf_pos = 0;
726726
unsigned int remdata, xfercount, next_jiffies;
727727
int first = 1;
728-
int loops = 0;
729728
u16 state;
730729
u32 buffer_size, bytes_avail, samples_played, on_card_bytes;
731730
char name[16];
@@ -806,7 +805,6 @@ static void snd_card_asihpi_timer_function(struct timer_list *t)
806805
(unsigned long)frames_to_bytes(runtime,
807806
runtime->control->appl_ptr)
808807
);
809-
loops++;
810808
}
811809
pcm_buf_dma_ofs = min_buf_pos;
812810

0 commit comments

Comments
 (0)