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

selftests: ALSA: Remove unused variable in utimer-test

The variable 'i' in wrong_timers_test() is declared but never used.
This was detected by Cppcheck static analysis.

tools/testing/selftests/alsa/utimer-test.c:144:9: style: Unused variable: i [unusedVariable]

Remove it to clean up the code and silence the warning.

Signed-off-by: LeeYongjun <jun85566@gmail.com>
Link: https://patch.msgid.link/20260118065510.29644-1-jun85566@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

LeeYongjun and committed by
Takashi Iwai
1deecf78 49985bc4

-1
-1
tools/testing/selftests/alsa/utimer-test.c
··· 141 141 TEST(wrong_timers_test) { 142 142 int timer_dev_fd; 143 143 int utimer_fd; 144 - size_t i; 145 144 struct snd_timer_uinfo wrong_timer = { 146 145 .resolution = 0, 147 146 .id = UTIMER_DEFAULT_ID,