diff --git a/src/gallium/auxiliary/renderonly/renderonly.c b/src/gallium/auxiliary/renderonly/renderonly.c index 00c8a7eeb45..56dc06bca17 100644 --- a/src/gallium/auxiliary/renderonly/renderonly.c +++ b/src/gallium/auxiliary/renderonly/renderonly.c @@ -134,10 +134,8 @@ renderonly_create_gpu_import_for_resource(struct pipe_resource *rsc, err = drmPrimeFDToHandle(ro->kms_fd, fd, &scanout->handle); close(fd); - if (err < 0) { - fprintf(stderr, "drmPrimeFDToHandle() failed: %s\n", strerror(errno)); + if (err < 0) goto free_scanout; - } return scanout;