[PATCH 6/8] Remove never used assignments

Tim Wiederhake twied at gmx.net
Mon Jul 16 07:02:50 PDT 2012


---
 xf86drm.c   |    2 ++
 xf86drmSL.c |    1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/xf86drm.c b/xf86drm.c
index 6ea068f..94f634d 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -304,7 +304,9 @@ static int drmOpenDevice(long dev, int minor, int type)
     char            buf[64];
     int             fd;
     mode_t          devmode = DRM_DEV_MODE, serv_mode;
+#if !defined(UDEV)
     int             isroot  = !geteuid();
+#endif
     uid_t           user    = DRM_DEV_UID;
     gid_t           group   = DRM_DEV_GID, serv_group;
     
diff --git a/xf86drmSL.c b/xf86drmSL.c
index acddb54..0d639aa 100644
--- a/xf86drmSL.c
+++ b/xf86drmSL.c
@@ -263,7 +263,6 @@ int drmSLLookupNeighbors(void *l, unsigned long key,
 			 unsigned long *prev_key, void **prev_value,
 			 unsigned long *next_key, void **next_value)
 {
-    SkipListPtr   list = (SkipListPtr)l;
     SLEntryPtr    update[SL_MAX_LEVEL + 1];
     int           retcode = 0;
 
-- 
1.7.10.4



More information about the dri-devel mailing list