selftests: alsa: Remove unused variable in utimer-test
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- tools/testing/selftests/alsa/utimer-test.c | 1 - 1 file changed, 1 deletion(-)
tools/testing/selftests/alsa/utimer-test.c +0 -1
@@ -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 ,
Signature · 1 line
2.34.1
Takashi Iwai
AppliedQuoted 9 lines · LeeYongjun
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 <[email protected]>
Thanks, applied now.
Takashi