From patchwork Mon Nov 26 04:49:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 13189 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 5548123EFB for ; Mon, 26 Nov 2012 04:55:47 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 06E81A180E3 for ; Mon, 26 Nov 2012 04:55:46 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id c10so4033426ieb.11 for ; Sun, 25 Nov 2012 20:55:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=gACDJup9KNirY7DRVATjQwkRaAyz6l29D8YWeJkNRfk=; b=e0SMnWwc69ePun0fFs+C/5XebNIw85xCylRUNzd++BYdpoNWpR0pSeLhBNHuH+HPHp sJHs5AB3xfH1IroLoI89fz8q38DeJ56dmWMO29C9vIpwMIUfvIZsnYR0FRAo8+kTAx1j BAtwzd5Xsd1P+RXZtdsKsinNJV0Cop8Cnb5fv+0j4xWQV0xQdsZ/CE3iXnFVrd+9gc/h sKNihWI69jT9aytoK7AIe+NNKfQgzbwgLzO9N3uJgvKykRQzQTYDg+OtRZ3GkvCtvTkc 5dJ/RJZsC2JSXOTbx9fvC2kMd+lHecDf9PWQkrzZbobUv13EhZidknQTPMR2bk5Do6eg zowQ== Received: by 10.43.46.2 with SMTP id um2mr8674468icb.18.1353905746800; Sun, 25 Nov 2012 20:55:46 -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.50.67.148 with SMTP id n20csp201143igt; Sun, 25 Nov 2012 20:55:46 -0800 (PST) Received: by 10.66.81.138 with SMTP id a10mr29449193pay.53.1353905746118; Sun, 25 Nov 2012 20:55:46 -0800 (PST) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by mx.google.com with ESMTPS id zz3si17976766pbc.91.2012.11.25.20.55.45 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:55:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.51 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.51; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.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-pa0-f51.google.com with SMTP id fb11so4786720pad.10 for ; Sun, 25 Nov 2012 20:55:45 -0800 (PST) Received: by 10.68.253.4 with SMTP id zw4mr34144224pbc.143.1353905745863; Sun, 25 Nov 2012 20:55:45 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id g1sm8082844pax.21.2012.11.25.20.55.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 20:55:45 -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 4/9] [media] s5p-tv: Add missing braces around sizeof in mixer_drv.c Date: Mon, 26 Nov 2012 10:19:03 +0530 Message-Id: <1353905348-15475-5-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: ALoCoQnc5UEjhnNGMHc4di2u87zynTZe7P/YHY60JKx1sYcTphUGOP74GRZarkeDQPXmKA1l4i24 Silences checkpatch warnings of type: WARNING: sizeof mdev->res should be sizeof(mdev->res) FILE: media/platform/s5p-tv/mixer_drv.c:301: memset(&mdev->res, 0, sizeof mdev->res); WARNING: sizeof *mdev should be sizeof(*mdev) FILE: media/platform/s5p-tv/mixer_drv.c:385: mdev = kzalloc(sizeof *mdev, GFP_KERNEL); Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-tv/mixer_drv.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/s5p-tv/mixer_drv.c b/drivers/media/platform/s5p-tv/mixer_drv.c index ca0f297..a6dee4d 100644 --- a/drivers/media/platform/s5p-tv/mixer_drv.c +++ b/drivers/media/platform/s5p-tv/mixer_drv.c @@ -298,7 +298,7 @@ static void mxr_release_resources(struct mxr_device *mdev) { mxr_release_clocks(mdev); mxr_release_plat_resources(mdev); - memset(&mdev->res, 0, sizeof mdev->res); + memset(&mdev->res, 0, sizeof(mdev->res)); } static void mxr_release_layers(struct mxr_device *mdev) @@ -382,7 +382,7 @@ static int __devinit mxr_probe(struct platform_device *pdev) /* mdev does not exist yet so no mxr_dbg is used */ dev_info(dev, "probe start\n"); - mdev = kzalloc(sizeof *mdev, GFP_KERNEL); + mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); if (!mdev) { dev_err(dev, "not enough memory.\n"); ret = -ENOMEM;