summaryrefslogtreecommitdiffstats
path: root/src/gbm/main/gbm.c
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2016-09-13 17:32:39 +0100
committerEmil Velikov <[email protected]>2016-09-14 14:37:34 +0100
commit4bb9efb59290c77ef4acd4abab5729efa9bf4e24 (patch)
tree744c5a81e99d7d02a4d4b682aa10be166f64d029 /src/gbm/main/gbm.c
parent2527e18eebe2faf395d1682db7df76043aca6ea3 (diff)
gbm: remove left-over array
e7c8c85785b3a8f29e3f ("gbm: Removed unused function.") forgot to remove the global array used only by that function. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gbm/main/gbm.c')
-rw-r--r--src/gbm/main/gbm.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c
index 1acbbcd0695..5a8e8b7b9f0 100644
--- a/src/gbm/main/gbm.c
+++ b/src/gbm/main/gbm.c
@@ -45,12 +45,6 @@
#include "gbmint.h"
#include "backend.h"
-#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
-
-static struct gbm_device *devices[16];
-
-static int device_num = 0;
-
/** Returns the file description for the gbm device
*
* \return The fd that the struct gbm_device was created with
@@ -127,9 +121,6 @@ gbm_create_device(int fd)
return NULL;
}
- if (device_num == 0)
- memset(devices, 0, sizeof devices);
-
gbm = _gbm_create_device(fd);
if (gbm == NULL)
return NULL;
@@ -138,9 +129,6 @@ gbm_create_device(int fd)
gbm->stat = buf;
gbm->refcount = 1;
- if (device_num < ARRAY_SIZE(devices)-1)
- devices[device_num++] = gbm;
-
return gbm;
}