1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

wayland: cleanup registry_handle_global

The wl_registry object is already passed as a parameter. No need to create
a temporary variable.
This commit is contained in:
Alexander Preisinger 2014-01-08 16:21:49 +01:00
parent 74d9504b65
commit 61e5670684

View File

@ -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) {