aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-08-26 16:55:38 +1200
committerScott Anderson <ascent12@hotmail.com>2017-09-30 18:53:05 +1300
commitc8a8ff66f2bdeab0623c11c1c381b52bc41fbf0d (patch)
tree4b6ed41dd6727c0655223b7f10dddc9737c113e4 /backend/drm
parent0c48ef5ad860dfdd041b9ce5d300c6fa85151e3f (diff)
Removed unused fields
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/backend.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index 8d562007..c394ed65 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -6,7 +6,6 @@
#include <assert.h>
#include <wayland-server.h>
#include <xf86drm.h>
-#include <sys/stat.h>
#include <wlr/backend/session.h>
#include <wlr/backend/interface.h>
#include <wlr/interfaces/wlr_output.h>
@@ -119,12 +118,6 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
backend->fd = gpu_fd;
- struct stat st;
- if (fstat(backend->fd, &st) < 0) {
- wlr_log_errno(L_ERROR, "Stat failed");
- }
- backend->dev = st.st_rdev;
-
backend->drm_invalidated.notify = drm_invalidated;
wlr_session_signal_add(session, gpu_fd, &backend->drm_invalidated);