Skip to content

Commit

Permalink
ALSA: asihpi: remove unused loop_count variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tom Rix authored and Takashi Iwai committed Mar 29, 2023
1 parent 2fa98a4 commit 84f02f3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/pci/asihpi/hpi6000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 84f02f3

Please sign in to comment.