diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-08 16:21:49 +0100 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-08 16:23:19 +0100 |
commit | 61e5670684f751940c8567697794328c9ce815b1 (patch) | |
tree | 4f94bdf4fe0ca26cee822488244c897035bd7fc1 | |
parent | 74d9504b658cd2b0ecb64f6ecc09ef3cbdc52e04 (diff) | |
download | mpv-61e5670684f751940c8567697794328c9ce815b1.tar.bz2 mpv-61e5670684f751940c8567697794328c9ce815b1.tar.xz |
wayland: cleanup registry_handle_global
The wl_registry object is already passed as a parameter. No need to create
a temporary variable.
-rw-r--r-- | video/out/wayland_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |