From patchwork Fri Aug 31 10:20:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 1395101 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 55966DFABE for ; Sat, 1 Sep 2012 10:34:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF34C9ED67 for ; Sat, 1 Sep 2012 03:34:04 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pz0-f49.google.com (mail-pz0-f49.google.com [209.85.210.49]) by gabe.freedesktop.org (Postfix) with ESMTP id E2234A0A15 for ; Fri, 31 Aug 2012 03:23:20 -0700 (PDT) Received: by dajq27 with SMTP id q27so1907656daj.36 for ; Fri, 31 Aug 2012 03:23:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=M3+gP0fPncGPFOj5NyZOzXwRdcD5HRB4iQ1FdGBJjNQ=; b=FMpu3Fc+cf9HQY7yRwir5LXjEsiQxQnojVLV04L3usaSF9DZ8g1nOhpfVG0ikVwcQx +l6wK83/iApLPKWA97pbnyXAt2yTnw+x5iE1G6XCcMabBNocvBEHhP+YutigcDviHw+I ziiDhmEUYIpxC1EixtfxuslE4X6mJxPViMZF9Epb1Culompp2u9Vu+qe9S2Q8SHObDNv sDi/mtPwd6BHnorn49Z8qwIyB7yHnuiriH30YgczM4r7NKdk4X4bBta+gwTj+GL/547r iDmELeKXEJbkZ315RaCf6OJK/qYvDxIgP2+K2LfWHsGXClUMKL5HrSzBxHyhV9CKIzCo zItg== Received: by 10.68.129.131 with SMTP id nw3mr16760559pbb.43.1346408600661; Fri, 31 Aug 2012 03:23:20 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id kp3sm3148137pbc.64.2012.08.31.03.23.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 31 Aug 2012 03:23:19 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/exynos: Add missing braces around sizeof in exynos_hdmi.c Date: Fri, 31 Aug 2012 15:50:47 +0530 Message-Id: <1346408448-13928-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQl1baQtq8UL5/X4yFzij+So/bNQhlCvq9KMJ/CqF+eSsvudAhwQDjTzKsRghDhLwjQLmBrl X-Mailman-Approved-At: Sat, 01 Sep 2012 03:31:53 -0700 Cc: patches@linaro.org, sachin.kamat@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 warnings: WARNING: sizeof *res should be sizeof(*res) WARNING: sizeof res->regul_bulk[0] should be sizeof(res->regul_bulk[0]) WARNING: sizeof *res should be sizeof(*res) Signed-off-by: Sachin Kamat --- drivers/gpu/drm/exynos/exynos_hdmi.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 409e2ec..a4c6bbc 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -2172,7 +2172,7 @@ static int __devinit hdmi_resources_init(struct hdmi_context *hdata) DRM_DEBUG_KMS("HDMI resource init\n"); - memset(res, 0, sizeof *res); + memset(res, 0, sizeof(*res)); /* get clocks, power */ res->hdmi = clk_get(dev, "hdmi"); @@ -2204,7 +2204,7 @@ static int __devinit hdmi_resources_init(struct hdmi_context *hdata) clk_set_parent(res->sclk_hdmi, res->sclk_pixel); res->regul_bulk = kzalloc(ARRAY_SIZE(supply) * - sizeof res->regul_bulk[0], GFP_KERNEL); + sizeof(res->regul_bulk[0]), GFP_KERNEL); if (!res->regul_bulk) { DRM_ERROR("failed to get memory for regulators\n"); goto fail; @@ -2243,7 +2243,7 @@ static int hdmi_resources_cleanup(struct hdmi_context *hdata) clk_put(res->sclk_hdmi); if (!IS_ERR_OR_NULL(res->hdmi)) clk_put(res->hdmi); - memset(res, 0, sizeof *res); + memset(res, 0, sizeof(*res)); return 0; }