[PATCH 2/8] loader: Remove unused module serial number

Adam Jackson ajax at redhat.com
Tue Sep 21 16:05:20 PDT 2010


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 hw/xfree86/loader/loader.c |    3 ---
 hw/xfree86/loader/loader.h |    1 -
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/hw/xfree86/loader/loader.c b/hw/xfree86/loader/loader.c
index d51ea92..580d059 100644
--- a/hw/xfree86/loader/loader.c
+++ b/hw/xfree86/loader/loader.c
@@ -107,8 +107,6 @@ extern void *xorg_symbols[];
 #define MAX_HANDLE 256
 static int refCount[MAX_HANDLE];
 
-static int moduleseq = 0;
-
 /* Prototypes for static functions. */
 static loaderPtr listHead = NULL;
 
@@ -263,7 +261,6 @@ LoaderOpen(const char *module, const char *cname, int handle,
     tmp->name = strdup(module);
     tmp->cname = strdup(cname);
     tmp->handle = new_handle;
-    tmp->module = moduleseq++;
 
     if ((tmp->private = do_dlopen(tmp, flags)) == NULL) {
 	xf86Msg(X_ERROR, "Failed to load %s\n", module);
diff --git a/hw/xfree86/loader/loader.h b/hw/xfree86/loader/loader.h
index 9695c6c..42e1518 100644
--- a/hw/xfree86/loader/loader.h
+++ b/hw/xfree86/loader/loader.h
@@ -67,7 +67,6 @@ typedef struct _loader *loaderPtr;
 typedef struct _loader {
     int handle;			/* Unique id used to remove symbols from
 				 * this module when it is unloaded */
-    int module;			/* Unique id to identify compilation units */
     char *name;
     char *cname;
     void *private;		/* format specific data */
-- 
1.7.2.2



More information about the xorg-devel mailing list