diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2011-12-13 14:20:23 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2011-12-29 11:21:41 +0900 |
commit | ee5e770ef4eedf3abb12d05703d6a722b0e40779 (patch) | |
tree | abe6329a6a53eb9915f000bd6e032921365535c7 /drivers/gpu/drm/exynos/exynos_drm_fb.c | |
parent | 5c2a5ce689c99037771a6c110374461781a6f042 (diff) | |
download | linux-ee5e770ef4eedf3abb12d05703d6a722b0e40779.tar.gz linux-ee5e770ef4eedf3abb12d05703d6a722b0e40779.tar.bz2 linux-ee5e770ef4eedf3abb12d05703d6a722b0e40779.zip |
drm/exynos: gem code cleanup
This cleans codes of exynos gem - indents and order function and so on.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_fb.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c index df5eec6c1aba..39f268b49aea 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fb.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fb.c @@ -150,8 +150,8 @@ exynos_drm_fb_init(struct drm_file *file_priv, struct drm_device *dev, * for default framebuffer. */ buffer = exynos_drm_buf_create(dev, size); - if (IS_ERR(buffer)) { - ret = PTR_ERR(buffer); + if (!buffer) { + ret = -ENOMEM; goto err_buffer; } |