namehint: Fix hw device evaluation (missing last device)
authorJaroslav Kysela <perex@perex.cz>
Fri, 1 Oct 2010 11:31:45 +0000 (13:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 1 Oct 2010 11:31:45 +0000 (13:31 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

src/control/namehint.c

index e06d240..ab3525e 100644 (file)
@@ -446,7 +446,7 @@ static int add_card(struct hint_list *list, int card)
                                ok++;
                        }
                        ok = 0;
-                       for (device = 0; err >= 0 && device < max_device; device++) {
+                       for (device = 0; err >= 0 && device <= max_device; device++) {
                                list->device = device;
                                err = try_config(list, list->siface, str);
                                if (err < 0)