public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests: alsa: Remove unused variable in utimer-test
@ 2026-01-18  6:55 LeeYongjun
  2026-01-19  8:13 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: LeeYongjun @ 2026-01-18  6:55 UTC (permalink / raw)
  To: broonie, perex, tiwai, shuah
  Cc: linux-sound, linux-kselftest, linux-kernel, 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 <jun85566@gmail.com>
---
 tools/testing/selftests/alsa/utimer-test.c | 1 -
 1 file changed, 1 deletion(-)

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,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] selftests: alsa: Remove unused variable in utimer-test
  2026-01-18  6:55 [PATCH] selftests: alsa: Remove unused variable in utimer-test LeeYongjun
@ 2026-01-19  8:13 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2026-01-19  8:13 UTC (permalink / raw)
  To: LeeYongjun
  Cc: broonie, perex, tiwai, shuah, linux-sound, linux-kselftest,
	linux-kernel

On Sun, 18 Jan 2026 07:55:10 +0100,
LeeYongjun wrote:
> 
> 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>

Thanks, applied now.


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-19  8:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-18  6:55 [PATCH] selftests: alsa: Remove unused variable in utimer-test LeeYongjun
2026-01-19  8:13 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox