]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests: ALSA: Remove unused variable in utimer-test
authorLeeYongjun <jun85566@gmail.com>
Sun, 18 Jan 2026 06:55:10 +0000 (15:55 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Jan 2026 08:12:59 +0000 (09:12 +0100)
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>
tools/testing/selftests/alsa/utimer-test.c

index c45cb226bd8fb4513723ac355e9d30ce39cfc38f..d221972cd8fb7abf9b32034e9e9efa39ee1ac6ed 100644 (file)
@@ -141,7 +141,6 @@ TEST_F(timer_f, utimer) {
 TEST(wrong_timers_test) {
        int timer_dev_fd;
        int utimer_fd;
-       size_t i;
        struct snd_timer_uinfo wrong_timer = {
                .resolution = 0,
                .id = UTIMER_DEFAULT_ID,