anv: Structify a one-member union
authorChad Versace <chad.versace@intel.com>
Mon, 1 Feb 2016 20:18:10 +0000 (12:18 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 1 Feb 2016 20:18:10 +0000 (12:18 -0800)
anv_descriptor contained a union with one member.

src/vulkan/anv_private.h

index f4794d9fb9dbb9ff388f4931f0630840a975eab4..b9490ae31e2464de8263a1547c37a83cd59d46ac 100644 (file)
@@ -918,9 +918,7 @@ struct anv_descriptor {
 
    union {
       struct {
-         union {
-            struct anv_image_view *image_view;
-         };
+         struct anv_image_view *image_view;
          struct anv_sampler *sampler;
       };