summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-01-25 14:45:42 +0530
committerInki Dae <inki.dae@samsung.com>2013-02-21 15:00:26 +0900
commite44a5c00169df634c152bdba65c7b735eb3a7a81 (patch)
tree61151f93f0a68c4208ce1cdb71802a1f8c73e35f
parentb9ede277e15916a9ec3c6c1932c390e4768e71a9 (diff)
downloadop-kernel-dev-e44a5c00169df634c152bdba65c7b735eb3a7a81.zip
op-kernel-dev-e44a5c00169df634c152bdba65c7b735eb3a7a81.tar.gz
drm/exynos: Add missing braces around sizeof
Fixes the following checkpatch warning: WARNING: sizeof *sgt should be sizeof(*sgt) Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_g2d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
index 9a4c08e..ddcfb5d 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
@@ -429,7 +429,7 @@ static dma_addr_t *g2d_userptr_get_dma_addr(struct drm_device *drm_dev,
g2d_userptr->pages = pages;
- sgt = kzalloc(sizeof *sgt, GFP_KERNEL);
+ sgt = kzalloc(sizeof(*sgt), GFP_KERNEL);
if (!sgt) {
DRM_ERROR("failed to allocate sg table.\n");
ret = -ENOMEM;
OpenPOWER on IntegriCloud