From patchwork Fri Jan 25 09:15:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 14282 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3555C23F91 for ; Fri, 25 Jan 2013 09:24:38 +0000 (UTC) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by fiordland.canonical.com (Postfix) with ESMTP id CCEADA191EF for ; Fri, 25 Jan 2013 09:24:37 +0000 (UTC) Received: by mail-vb0-f45.google.com with SMTP id p1so103663vbi.18 for ; Fri, 25 Jan 2013 01:24:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=hDlrD1mb0kjGQmj4c8djmyZohcnxpUERo+3MD1adfVM=; b=Ema8+j4qCuNDgouddKF8c+BmlUlH+7NC0sh2dpZXx02UuD4A9gWMFpNamJ0GiGVswO bckTnZJqOdAuf2kBnYW2WyMOwSOKhwohxdEFfVW1JyHIOqVuq0OQFttvFzNCrALqBGvv mNcuq5vl6pPM2HB3e0Z+aTNu9SXTfSUdvUfrO7yc49hY5j19Tva0xf+iUwyNavwwGeOQ NlawLMwkadprXp76ZjlE19fTjCl+TtAo+x+Ib9G4W2uknNDOBxL3ffu0hukDXFfbZPOt TsgBF7E060jIhIWRKPNFLF9POj8KGWNWlHqTA22PcIO6QGH4Fnu2wy+QIw+DCsJicvvH Twzg== X-Received: by 10.52.34.108 with SMTP id y12mr4598304vdi.8.1359105877201; Fri, 25 Jan 2013 01:24:37 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp107093veb; Fri, 25 Jan 2013 01:24:36 -0800 (PST) X-Received: by 10.69.0.74 with SMTP id aw10mr12623958pbd.87.1359105876313; Fri, 25 Jan 2013 01:24:36 -0800 (PST) Received: from mail-da0-f51.google.com (mail-da0-f51.google.com [209.85.210.51]) by mx.google.com with ESMTPS id u7si589352paw.185.2013.01.25.01.24.35 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jan 2013 01:24:36 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.51 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.51; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.51 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-da0-f51.google.com with SMTP id i30so86834dad.24 for ; Fri, 25 Jan 2013 01:24:35 -0800 (PST) X-Received: by 10.68.230.101 with SMTP id sx5mr12769075pbc.50.1359105875773; Fri, 25 Jan 2013 01:24:35 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ou3sm347497pbb.46.2013.01.25.01.24.33 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Jan 2013 01:24:35 -0800 (PST) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Cc: inki.dae@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] drm/exynos: Add missing braces around sizeof Date: Fri, 25 Jan 2013 14:45:42 +0530 Message-Id: <1359105342-28084-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQntJouFWWGMPvktBSuSdChql6EQvZztSROnqEOBgplw+JhyOO0YKu/pLw1D47WRKurFG3QA Fixes the following checkpatch warning: WARNING: sizeof *sgt should be sizeof(*sgt) Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 2 +- 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;