nv50/ir: fix unnecessary parentheses warning
authorKarol Herbst <kherbst@redhat.com>
Fri, 20 Sep 2019 17:45:22 +0000 (19:45 +0200)
committerKarol Herbst <kherbst@redhat.com>
Mon, 23 Sep 2019 11:27:32 +0000 (13:27 +0200)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Rhys Kidd <rhyskidd@gmail.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_util.h

index 307c23d5e036c8039da68d881ea2aac1edc505bb..b1766f48205c47b9f17e7360c61365c5b625f94b 100644 (file)
@@ -145,7 +145,7 @@ public:
 #define DLLIST_EMPTY(__list) ((__list)->next == (__list))
 
 #define DLLIST_FOR_EACH(list, it) \
-   for (DLList::Iterator (it) = (list)->iterator(); !(it).end(); (it).next())
+   for (DLList::Iterator it = (list)->iterator(); !(it).end(); (it).next())
 
 class DLList
 {