Skip to contentSkip to conversation

selftests: alsa: Remove unused variable in utimer-test

PATCH Applied LeeYongjun 2 participants 2 messages Jan 18 – Jan 19

Subsystems (3)
lore
Share & tools
lore

LeeYongjun

author
#0 lore raw

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.

---
 tools/testing/selftests/alsa/utimer-test.c | 1 -
 1 file changed, 1 deletion(-)
tools/testing/selftests/alsa/utimer-test.c +0 -1
index c45cb226bd8f..d221972cd8fb 100644
@@ -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
Applied
#1 lore raw
Quoted 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.

Thanks, applied now.

Takashi