diff options
author | Ben Widawsky <[email protected]> | 2016-07-29 13:42:04 -0700 |
---|---|---|
committer | Ben Widawsky <[email protected]> | 2016-08-01 09:11:14 -0700 |
commit | e7c8c85785b3a8f29e3fc202988ac2414453586f (patch) | |
tree | 546cb86224df037a8c244f4535a89f2e8879b84a /src/gbm | |
parent | cec377eed3ab6420679dceef98ad0eea27b5f644 (diff) |
gbm: Removed unused function.
AFAICT, it's never been used.
It was briefly nudged in the right direction here:
commit 10e5ffd4961055ebba5be4d85a93cc66cdd5a635
Author: Emil Velikov <[email protected]>
Date: Sat Jan 25 17:19:10 2014 +0000
gbm: do not export _gbm_mesa_get_device
Signed-off-by: Ben Widawsky <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/gbm')
-rw-r--r-- | src/gbm/main/gbm.c | 26 | ||||
-rw-r--r-- | src/gbm/main/gbmint.h | 3 |
2 files changed, 0 insertions, 29 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index 20ff3f280a7..75fc5d47c72 100644 --- a/src/gbm/main/gbm.c +++ b/src/gbm/main/gbm.c @@ -104,32 +104,6 @@ gbm_device_destroy(struct gbm_device *gbm) gbm->destroy(gbm); } -struct gbm_device * -_gbm_mesa_get_device(int fd) -{ - struct gbm_device *gbm = NULL; - struct stat buf; - dev_t dev; - int i; - - if (fd < 0 || fstat(fd, &buf) < 0 || !S_ISCHR(buf.st_mode)) { - errno = EINVAL; - return NULL; - } - - for (i = 0; i < device_num; ++i) { - dev = devices[i]->stat.st_rdev; - if (major(dev) == major(buf.st_rdev) && - minor(dev) == minor(buf.st_rdev)) { - gbm = devices[i]; - gbm->refcount++; - break; - } - } - - return gbm; -} - /** Create a gbm device for allocating buffers * * The file descriptor passed in is used by the backend to communicate with diff --git a/src/gbm/main/gbmint.h b/src/gbm/main/gbmint.h index 914e2c1749a..cfef5eea291 100644 --- a/src/gbm/main/gbmint.h +++ b/src/gbm/main/gbmint.h @@ -117,7 +117,4 @@ struct gbm_backend { struct gbm_device *(*create_device)(int fd); }; -struct gbm_device * -_gbm_mesa_get_device(int fd); - #endif |