intel-virtual-output: Remove one redundant cleanup on error
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Jun 2014 06:44:25 +0000 (07:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Jun 2014 06:44:25 +0000 (07:44 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tools/virtual.c

index 5bc050b..9ed1d03 100644 (file)
@@ -3260,10 +3260,8 @@ int main(int argc, char **argv)
        }
 
        ret = display_init_damage(ctx.display);
-       if (ret) {
-               context_cleanup(&ctx);
+       if (ret)
                goto out;
-       }
 
        if ((ctx.display->rr_event | ctx.display->rr_error) == 0) {
                fprintf(stderr, "RandR extension not supported by %s\n", DisplayString(ctx.display->dpy));