Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tom Rix and committed by
Takashi Iwai
84f02f33 2fa98a42

-2
-2
sound/pci/asihpi/hpi6000.c
··· 1253 1253 int local_count = count; 1254 1254 int xfer_size; 1255 1255 u32 *pdata = dest; 1256 - u32 loop_count = 0; 1257 1256 1258 1257 while (local_count) { 1259 1258 if (local_count > c6711_burst_size) ··· 1272 1273 pdata += xfer_size; 1273 1274 local_hpi_address += sizeof(u32) * xfer_size; 1274 1275 local_count -= xfer_size; 1275 - loop_count++; 1276 1276 } 1277 1277 1278 1278 if (time_out)