From: Ben Skeggs Date: Mon, 18 Aug 2014 04:05:40 +0000 (+1000) Subject: drm/nouveau/bios: fix thinko when parsing extdev table X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e8972421623cd10a12cc7343da029b58777fdd2f;p=linux-beck.git drm/nouveau/bios: fix thinko when parsing extdev table Signed-off-by: Ben Skeggs --- 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;