Change-Id: I584c3031b3d8464fbf0e26654c4ce15c7657dd24
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
struct udev_device *device = NULL, *drm_device = NULL, *device_parent = NULL;
const char *filepath;
struct stat s;
struct udev_device *device = NULL, *drm_device = NULL, *device_parent = NULL;
const char *filepath;
struct stat s;
int ret;
TBM_EXYNOS_LOG ("[libtbm-exynos:%d] "
int ret;
TBM_EXYNOS_LOG ("[libtbm-exynos:%d] "
ret = fstat(fd, &s);
if (ret) {
TBM_EXYNOS_LOG("fstat() failed %s.\n");
ret = fstat(fd, &s);
if (ret) {
TBM_EXYNOS_LOG("fstat() failed %s.\n");
udev_device_unref(drm_device);
udev_unref(udev);
return -1;
udev_device_unref(drm_device);
udev_unref(udev);
return -1;