All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] intel-gpu-overlay: Fix some build warnings
@ 2018-05-18 16:12 ` Tvrtko Ursulin
  0 siblings, 0 replies; 6+ messages in thread
From: Tvrtko Ursulin @ 2018-05-18 16:12 UTC (permalink / raw)
  To: igt-dev; +Cc: intel-gfx

From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Trivial "set but unused" cleanup.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 overlay/x11/x11-overlay.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/overlay/x11/x11-overlay.c b/overlay/x11/x11-overlay.c
index ae6494295c5a..ac6b5f39a696 100644
--- a/overlay/x11/x11-overlay.c
+++ b/overlay/x11/x11-overlay.c
@@ -123,7 +123,6 @@ cairo_surface_t *
 x11_overlay_create(struct config *config, int *width, int *height)
 {
 	Display *dpy;
-	Screen *scr;
 	cairo_surface_t *surface;
 	struct drm_i915_gem_create create;
 	struct drm_gem_flink flink;
@@ -135,7 +134,6 @@ x11_overlay_create(struct config *config, int *width, int *height)
 	XvImage *image;
 	XvPortID port = -1;
 	void *ptr, *mem;
-	enum position position;
 
 	dpy = XOpenDisplay(NULL);
 	if (dpy == NULL)
@@ -143,7 +141,7 @@ x11_overlay_create(struct config *config, int *width, int *height)
 
 	XSetErrorHandler(check_error_handler);
 
-	scr = ScreenOfDisplay(dpy, DefaultScreen(dpy));
+	ScreenOfDisplay(dpy, DefaultScreen(dpy));
 
 	fd = dri2_open(dpy);
 	if (fd < 0)
@@ -179,7 +177,7 @@ x11_overlay_create(struct config *config, int *width, int *height)
 
 	XSetErrorHandler(noop);
 
-	position = x11_position(dpy, *width, *height, config, &x, &y, &w, &h);
+	x11_position(dpy, *width, *height, config, &x, &y, &w, &h);
 
 	image = XvCreateImage(dpy, port, FOURCC_RGB565, NULL, w, h);
 	if (image == NULL)
-- 
2.17.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-19  1:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-18 16:12 [PATCH i-g-t] intel-gpu-overlay: Fix some build warnings Tvrtko Ursulin
2018-05-18 16:12 ` [igt-dev] " Tvrtko Ursulin
2018-05-18 16:27 ` Chris Wilson
2018-05-18 16:27   ` [Intel-gfx] " Chris Wilson
2018-05-18 17:09 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-05-19  1:29 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.