]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/nouveau/bios: fix thinko when parsing extdev table
authorBen Skeggs <bskeggs@redhat.com>
Mon, 18 Aug 2014 04:05:40 +0000 (14:05 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:43:38 +0000 (15:43 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c

index b2a676e53580ca6cd143e238b211cbcd7b5a027a..49285d4f7ca50a5c1ca224a48b8e27a8c431c2eb 100644 (file)
@@ -90,7 +90,7 @@ nvbios_extdev_find(struct nouveau_bios *bios, enum nvbios_extdev_type type,
        u16 entry;
 
        i = 0;
-       while (!(entry = nvbios_extdev_entry(bios, i++, &ver, &len))) {
+       while ((entry = nvbios_extdev_entry(bios, i++, &ver, &len))) {
                extdev_parse_entry(bios, entry, func);
                if (func->type == type)
                        return 0;