From 61e5670684f751940c8567697794328c9ce815b1 Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Wed, 8 Jan 2014 16:21:49 +0100 Subject: wayland: cleanup registry_handle_global The wl_registry object is already passed as a parameter. No need to create a temporary variable. --- video/out/wayland_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'video') diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index e3d93b0c12..c3ae027713 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -558,13 +558,12 @@ static const struct wl_data_device_listener data_device_listener = { }; static void registry_handle_global (void *data, - struct wl_registry *registry, + struct wl_registry *reg, uint32_t id, const char *interface, uint32_t version) { struct vo_wayland_state *wl = data; - struct wl_registry *reg = wl->display.registry; if (strcmp(interface, "wl_compositor") == 0) { -- cgit v1.2.3