From 52d50ca4efe09f5bbbdf48f65da637cdb6585497 Mon Sep 17 00:00:00 2001 From: Triton64 Date: Fri, 16 Jan 2015 19:36:58 -0700 Subject: [PATCH] Moving index in a more precise scope. --- sound/last.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/last.c b/sound/last.c index 43f222825038e8..51d240aec294d9 100644 --- a/sound/last.c +++ b/sound/last.c @@ -24,10 +24,10 @@ static int __init alsa_sound_last_init(void) { - int idx, ok = 0; + int ok = 0; printk(KERN_INFO "ALSA device list:\n"); - for (idx = 0; idx < SNDRV_CARDS; idx++) + for (int idx = 0; idx < SNDRV_CARDS; idx++) if (snd_cards[idx] != NULL) { printk(KERN_INFO " #%i: %s\n", idx, snd_cards[idx]->longname); ok++;