From patchwork Mon Nov 26 04:49:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 15660 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1Tcqje-0006CZ-Hn for patchwork@linuxtv.org; Mon, 26 Nov 2012 05:55:58 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-4) with esmtp for id 1Tcqjd-00057M-Ca; Mon, 26 Nov 2012 05:55:58 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754325Ab2KZEzu (ORCPT ); Sun, 25 Nov 2012 23:55:50 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:53739 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754319Ab2KZEzt (ORCPT ); Sun, 25 Nov 2012 23:55:49 -0500 Received: by mail-pa0-f46.google.com with SMTP id bh2so4742413pad.19 for ; Sun, 25 Nov 2012 20:55:48 -0800 (PST) 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:in-reply-to:references :x-gm-message-state; bh=n9mSVye4vwTTOA+u/2W2nGBSTLGwPQzKtfSVIHk4i98=; b=BdzNrysvn6w+i4NgJd3Xr7nk7AyiFEpJoCtAp9XduX+vQddA7e27SEdras3mBjiMm4 QhMchhc6Y5SZogbNL7q0PQVAfjPZEmoMb0HMVMhSHu5lb+FdbUuzVhRntyN/6RE+7jG3 IYcUOBvMVfjoQe0Y2Nwd7aujUfKZh2NWJAY3XELjej50rWnUnW5Z0hZ+3Jkn33+IxzLu xmCg5JG/06FV3gp7zd2HqK2qc4EyHMaIrMfpMORJ8QipcE3UZWGdqMVZm+CXV2foxf+M aqDVGG9yi68lTB3P/8yzpFttd+f+oB3xtDxpAy0zx+HSzy9kK07ZNIniEr9qgPHFynZ4 oeIQ== Received: by 10.68.234.100 with SMTP id ud4mr33734055pbc.82.1353905748775; Sun, 25 Nov 2012 20:55:48 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id g1sm8082844pax.21.2012.11.25.20.55.46 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:55:48 -0800 (PST) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: t.stanislaws@samsung.com, s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 5/9] [media] s5p-tv: Add missing braces around sizeof in hdmiphy_drv.c Date: Mon, 26 Nov 2012 10:19:04 +0530 Message-Id: <1353905348-15475-6-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1353905348-15475-1-git-send-email-sachin.kamat@linaro.org> References: <1353905348-15475-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmCiZ7K/R+yObElc299AdLAP2YfbN6BD1kJuZxwFSKA/7A2h/7a5am+7C2wEl0NiEUWJbgn Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.11.26.44816 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_1099 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __INT_PROD_TV 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS , __YOUTUBE_RCVD 0' Fixes the following checkpatch warning: WARNING: sizeof *ctx should be sizeof(*ctx) FILE: media/platform/s5p-tv/hdmiphy_drv.c:287: ctx = kzalloc(sizeof *ctx, GFP_KERNEL); Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-tv/hdmiphy_drv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/s5p-tv/hdmiphy_drv.c b/drivers/media/platform/s5p-tv/hdmiphy_drv.c index f67b386..94c2a13 100644 --- a/drivers/media/platform/s5p-tv/hdmiphy_drv.c +++ b/drivers/media/platform/s5p-tv/hdmiphy_drv.c @@ -284,7 +284,7 @@ static int __devinit hdmiphy_probe(struct i2c_client *client, { struct hdmiphy_ctx *ctx; - ctx = kzalloc(sizeof *ctx, GFP_KERNEL); + ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); if (!ctx) return -ENOMEM;