Skip to content

Commit 1deecf7

Browse files
LeeYongjuntiwai
authored andcommitted
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>
1 parent 49985bc commit 1deecf7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

tools/testing/selftests/alsa/utimer-test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ TEST_F(timer_f, utimer) {
141141
TEST(wrong_timers_test) {
142142
int timer_dev_fd;
143143
int utimer_fd;
144-
size_t i;
145144
struct snd_timer_uinfo wrong_timer = {
146145
.resolution = 0,
147146
.id = UTIMER_DEFAULT_ID,

0 commit comments

Comments
 (0)