summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-18 14:05:40 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-12-02 15:43:38 +1000
commite8972421623cd10a12cc7343da029b58777fdd2f (patch)
tree9f887dc956b8ad88fbe3994286f8fddb97d93b03
parent4894f6628e1ae04b2cc6222df692364c1ac1250f (diff)
downloadlinux-e8972421623cd10a12cc7343da029b58777fdd2f.tar.gz
linux-e8972421623cd10a12cc7343da029b58777fdd2f.tar.bz2
linux-e8972421623cd10a12cc7343da029b58777fdd2f.zip
drm/nouveau/bios: fix thinko when parsing extdev table
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c b/drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c
index b2a676e53580..49285d4f7ca5 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/bios/extdev.c
@@ -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;