diff options
| author | LeeYongjun <jun85566@gmail.com> | 2026-01-18 15:55:10 +0900 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-01-19 09:12:59 +0100 |
| commit | 1deecf7805f16cbcb3541cc57d8478b8b992a2ab (patch) | |
| tree | 3f3bc22d15893913633afdbc14a7a47f93cbf7fa | |
| parent | 49985bc466b51af88d534485631c8cd8c9c65f43 (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>
| -rw-r--r-- | tools/testing/selftests/alsa/utimer-test.c | 1 |
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, |
