From patchwork Mon Sep 24 06:17:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11655 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 1349723F66 for ; Mon, 24 Sep 2012 06:21:30 +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 B8B0EA18205 for ; Mon, 24 Sep 2012 06:21:29 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so9154810iej.11 for ; Sun, 23 Sep 2012 23:21:29 -0700 (PDT) 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=c1+5KCLk5rce7CLAHpF9p9GP4etKA3deqRmWaC71e2U=; b=GB7a+Ix6pceO/n85uA2+F77MPkHqehaWGBxMuHP0MQPVylKS/tvBKs/cNwPKD9nAFH SWS6R+dryFh/3wa6mEnyfahIw6oAKKmhsLsH57Adas/EgfO9JwBUAsPsHvxMQbHh0JJF aOZwE/4MsnvBUPDLYxts6VRgtAEgnrb+wmkg1UwrgDrc01UUQMl/WoXSUDPU2NOm2MR1 Hus0p6kWjkJFnY1RCbKnTGmc1udh3WQEP0u2BLmZTKxTJsxT7LHVTNtVDsnJPlOB5RZH kvSpXr7vWUgYw/5aSXz6p/tbOnZ62hRpgftAVmSQtTDAvmtM2WBAM5oNR7OZwOlacB8N gcwA== Received: by 10.50.184.129 with SMTP id eu1mr4423192igc.0.1348467689516; Sun, 23 Sep 2012 23:21:29 -0700 (PDT) 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.184.232 with SMTP id ex8csp228635igc; Sun, 23 Sep 2012 23:21:29 -0700 (PDT) Received: by 10.68.195.226 with SMTP id ih2mr19826018pbc.9.1348467688850; Sun, 23 Sep 2012 23:21:28 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id qs7si18580016pbc.162.2012.09.23.23.21.28 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Sep 2012 23:21:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.50 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-f50.google.com with SMTP id hz11so1150765pad.37 for ; Sun, 23 Sep 2012 23:21:28 -0700 (PDT) Received: by 10.68.189.69 with SMTP id gg5mr5659682pbc.36.1348467688631; Sun, 23 Sep 2012 23:21:28 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ho7sm9161024pbc.3.2012.09.23.23.21.25 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Sep 2012 23:21:28 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@infradead.org, sachin.kamat@linaro.org, m.szyprowski@samsung.com, pawel@osciak.com, patches@linaro.org Subject: [PATCH 2/4] [media] mem2mem_testdev: Add missing braces around sizeof Date: Mon, 24 Sep 2012 11:47:46 +0530 Message-Id: <1348467468-19854-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1348467468-19854-1-git-send-email-sachin.kamat@linaro.org> References: <1348467468-19854-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlonQyr+U1Srfs03UiBeccYV5qPgr8GLElwqxwbPXBMpkD5/VU1k5HMKXo1x88rVBvS55GL Fixes the following checkpatch warnings: WARNING: sizeof *ctx should be sizeof(*ctx) WARNING: sizeof *dev should be sizeof(*dev) Signed-off-by: Sachin Kamat --- drivers/media/platform/mem2mem_testdev.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c index fc95559..570e880 100644 --- a/drivers/media/platform/mem2mem_testdev.c +++ b/drivers/media/platform/mem2mem_testdev.c @@ -895,7 +895,7 @@ static int m2mtest_open(struct file *file) if (mutex_lock_interruptible(&dev->dev_mutex)) return -ERESTARTSYS; - ctx = kzalloc(sizeof *ctx, GFP_KERNEL); + ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); if (!ctx) { rc = -ENOMEM; goto open_unlock; @@ -1020,7 +1020,7 @@ static int m2mtest_probe(struct platform_device *pdev) struct video_device *vfd; int ret; - dev = kzalloc(sizeof *dev, GFP_KERNEL); + dev = kzalloc(sizeof(*dev), GFP_KERNEL); if (!dev) return -ENOMEM;