summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorLeeYongjun <jun85566@gmail.com>2026-01-18 15:55:10 +0900
committerTakashi Iwai <tiwai@suse.de>2026-01-19 09:12:59 +0100
commit1deecf7805f16cbcb3541cc57d8478b8b992a2ab (patch)
tree3f3bc22d15893913633afdbc14a7a47f93cbf7fa /tools/testing
parent49985bc466b51af88d534485631c8cd8c9c65f43 (diff)
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>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/alsa/utimer-test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/alsa/utimer-test.c b/tools/testing/selftests/alsa/utimer-test.c
index c45cb226bd8f..d221972cd8fb 100644
--- a/tools/testing/selftests/alsa/utimer-test.c
+++ b/tools/testing/selftests/alsa/utimer-test.c
@@ -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,