summaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi/hpi6000.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-03-26 22:57:12 +0200
committerTakashi Iwai <tiwai@suse.de>2023-03-29 14:40:43 +0200
commit84f02f3363382d45b8ab75361f7d69beb8f27f32 (patch)
tree9777fe447b3c4e6c74c4d94eda3d735c3424ae3d /sound/pci/asihpi/hpi6000.c
parentALSA: ymfpci: Use register macro in place of integer literal (diff)
downloadlinux-84f02f3363382d45b8ab75361f7d69beb8f27f32.tar.xz
linux-84f02f3363382d45b8ab75361f7d69beb8f27f32.zip
ALSA: asihpi: remove unused loop_count variable
clang with W=1 reports sound/pci/asihpi/hpi6000.c:1256:6: error: variable 'loop_count' set but not used [-Werror,-Wunused-but-set-variable] u32 loop_count = 0; ^ This variable is not used so remove it. Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20230326205712.1358918-1-trix@redhat.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/hpi6000.c')
-rw-r--r--sound/pci/asihpi/hpi6000.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/pci/asihpi/hpi6000.c b/sound/pci/asihpi/hpi6000.c
index 88d902997b74..72aa135d69f8 100644
--- a/sound/pci/asihpi/hpi6000.c
+++ b/sound/pci/asihpi/hpi6000.c
@@ -1253,7 +1253,6 @@ static u16 hpi6000_dsp_block_read32(struct hpi_adapter_obj *pao,
int local_count = count;
int xfer_size;
u32 *pdata = dest;
- u32 loop_count = 0;
while (local_count) {
if (local_count > c6711_burst_size)
@@ -1273,7 +1272,6 @@ static u16 hpi6000_dsp_block_read32(struct hpi_adapter_obj *pao,
pdata += xfer_size;
local_hpi_address += sizeof(u32) * xfer_size;
local_count -= xfer_size;
- loop_count++;
}
if (time_out)