projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72457b3
)
ALSA: asihpi: remove variable loops
author
Colin Ian King
<colin.i.king@gmail.com>
Mon, 24 Oct 2022 13:08:03 +0000
(14:08 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 24 Oct 2022 14:01:33 +0000
(16:01 +0200)
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 <colin.i.king@gmail.com>
Link:
https://lore.kernel.org/r/20221024130803.2156295-1-colin.i.king@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/asihpi.c
patch
|
blob
|
history
diff --git
a/sound/pci/asihpi/asihpi.c
b/sound/pci/asihpi/asihpi.c
index 8de43aaa10aac953667f70f94cd3066fdf58138c..001786e2aba130c52e36791a805a41782ecd970c 100644
(file)
--- a/
sound/pci/asihpi/asihpi.c
+++ b/
sound/pci/asihpi/asihpi.c
@@
-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;