From 574a2484c151fff55123c7ea19a22a351b5f3837 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 737d30582d..9c703e3546 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -464,13 +464,12 @@ static const struct wl_seat_listener seat_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