summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2010-09-17 07:55:48 -0400
committerAdam Jackson <ajax@redhat.com>2010-09-22 10:56:53 -0400
commit3a26e7f459764d4aee71b2d7e25b113b729b94ac (patch)
treeee99589743fa2eaf0824d8607f87a3e3567db5c4
parent2a24a013bf3f554bb03c0f5af155d23dbb27b599 (diff)
loader: Remove unused module serial number
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--hw/xfree86/loader/loader.c3
-rw-r--r--hw/xfree86/loader/loader.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/hw/xfree86/loader/loader.c b/hw/xfree86/loader/loader.c
index d51ea928f..580d05914 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 9695c6c59..42e1518e6 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 */