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: 2045801 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 007B9E0175 for ; Fri, 25 Jan 2013 15:02:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9980CE5DB9 for ; Fri, 25 Jan 2013 07:02:34 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by gabe.freedesktop.org (Postfix) with ESMTP id 03569E6032 for ; Fri, 25 Jan 2013 01:24:35 -0800 (PST) Received: by mail-pa0-f52.google.com with SMTP id fb1so155190pad.25 for ; Fri, 25 Jan 2013 01:24:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=hDlrD1mb0kjGQmj4c8djmyZohcnxpUERo+3MD1adfVM=; b=BCd+Nn5GbA3TWScujEGpRi/9QtOskUQN+8R7HxLx80kMfcLj6Ht7PET+tTfN6/1+Og 6Q42NMYotUHfnHApS/zTrPhEH7a9nYxXJLoFCClg3LRhF/JcZmP2+ZeClqeNKw72h2MB iLmZWl6tWuI7ionWySpWl9y7GWmMISWlvAxCuKBx8kau3D5j3baWYsYA5YpeXFdFK+Tj FDocfiJpaDTh9lS7/GIaSfWV8mnGJGQdomWxt8rIcoy69MpWdPvn0LaPb1t4A7msILMS NjYmD/rkpmj6roW0H4b5NFZnVCYpECzNr4RJfWDOUOgOwKgolM1knpTj8Gk0IEG2lR1k W5wQ== 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 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: ALoCoQkW8DbD2D7Fu1f4eTKw2rbulX3BkfNdwnzvZhin/U7YFO28+vhE2iPs/Lo4WBBAy5z1Y8m+ X-Mailman-Approved-At: Fri, 25 Jan 2013 06:58:19 -0800 Cc: sachin.kamat@linaro.org, patches@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org 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;