summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gralloc_drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gralloc_drm.c b/gralloc_drm.c
index 40342cb..49ae7d7 100644
--- a/gralloc_drm.c
+++ b/gralloc_drm.c
@@ -93,10 +93,10 @@ init_drv_from_fd(int fd)
} else
#endif
#ifdef ENABLE_PIPE
- if (!drv) {
+ {
drv = gralloc_drm_drv_create_for_pipe(fd, version->name);
ALOGI_IF(drv, "create pipe for driver %s", version->name);
- } else
+ }
#endif
if (!drv) {
ALOGE("unsupported driver: %s", (version->name) ?