diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c
index 2f5acb2..e9c6e0a 100644
--- a/src/egl/wayland/wayland-drm/wayland-drm.c
+++ b/src/egl/wayland/wayland-drm/wayland-drm.c
@@ -247,8 +247,6 @@ bind_drm(struct wl_client *client, void *data, uint32_t version, uint32_t id)
 struct wl_drm_buffer *
 wayland_drm_buffer_get(struct wl_drm *drm, struct wl_resource *resource)
 {
-	struct wl_drm_buffer *buffer;
-
 	if (resource == NULL)
 		return NULL;
 

