From patchwork Fri Aug 17 06:28:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10785 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 5E94423F46 for ; Fri, 17 Aug 2012 06:30:26 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 2E6CCA1917B for ; Fri, 17 Aug 2012 06:30:26 +0000 (UTC) Received: by yenl8 with SMTP id l8so3909875yen.11 for ; Thu, 16 Aug 2012 23:30:25 -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=qg20Q6aH5z7OhWHwYtgZqEvcTp99THZ50pW3C98jKqo=; b=hqpXsDBAJhHJBDcDu+3XfpcTBb/XEUpuWf0q3QeMnSlQ4rvkPhg53Z2rwWOTmDV2LM Uk43sL0n7WGfoycEaqL1NREK72aVa4m4zgHFHzeW36oVLp5JynoaJ25Rz36OQs7976P5 0lk7EznyJOxxpeWnLahSyu+56o+TP/TfAO8naiURBKSQx6LcqPRJvHA7xNgbuouQkj5i IkLxrz4CeApoKEaQ3I9pbIiZShVk3QNCvFmUl68sXVOTiaeIbHuiDQp4G5B3Uu279R4b 4YFosOSMSNcNRs7sWFzbSylz0jqyZloEUk/3mIYFJ747DalRUdwQi1VKjZ/vdl0lBTO+ HmHA== Received: by 10.50.181.136 with SMTP id dw8mr742492igc.31.1345185025402; Thu, 16 Aug 2012 23:30:25 -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.200 with SMTP id ew8csp172868igc; Thu, 16 Aug 2012 23:30:24 -0700 (PDT) Received: by 10.68.203.98 with SMTP id kp2mr8716240pbc.132.1345185024838; Thu, 16 Aug 2012 23:30:24 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id uz9si11644752pbc.316.2012.08.16.23.30.24 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 23:30:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.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 pbcmd12 with SMTP id md12so3228197pbc.37 for ; Thu, 16 Aug 2012 23:30:24 -0700 (PDT) Received: by 10.68.236.67 with SMTP id us3mr8980556pbc.80.1345185024422; Thu, 16 Aug 2012 23:30:24 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id oc2sm4257750pbb.69.2012.08.16.23.30.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 23:30:23 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@infradead.org, s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH-Trivial 2/2] [media] s5p-fimc: Add missing braces around sizeof Date: Fri, 17 Aug 2012 11:58:27 +0530 Message-Id: <1345184907-8317-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1345184907-8317-1-git-send-email-sachin.kamat@linaro.org> References: <1345184907-8317-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmBb3NTtMdHiQHAmCbY0sEYJIcQPe+agpqWkJ3gzBvu4NT2cOW5yseHyg3ASrF96fORwLlU Silences the following warning: WARNING: sizeof *ctx should be sizeof(*ctx) Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-fimc/fimc-capture.c | 2 +- drivers/media/platform/s5p-fimc/fimc-m2m.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 1.7.4.1 diff --git a/drivers/media/platform/s5p-fimc/fimc-capture.c b/drivers/media/platform/s5p-fimc/fimc-capture.c index 8e413dd..5283957 100644 --- a/drivers/media/platform/s5p-fimc/fimc-capture.c +++ b/drivers/media/platform/s5p-fimc/fimc-capture.c @@ -1593,7 +1593,7 @@ static int fimc_register_capture_device(struct fimc_dev *fimc, struct vb2_queue *q; int ret = -ENOMEM; - ctx = kzalloc(sizeof *ctx, GFP_KERNEL); + ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); if (!ctx) return -ENOMEM; diff --git a/drivers/media/platform/s5p-fimc/fimc-m2m.c b/drivers/media/platform/s5p-fimc/fimc-m2m.c index c587011..1b1e564 100644 --- a/drivers/media/platform/s5p-fimc/fimc-m2m.c +++ b/drivers/media/platform/s5p-fimc/fimc-m2m.c @@ -661,7 +661,7 @@ static int fimc_m2m_open(struct file *file) if (fimc->vid_cap.refcnt > 0) goto unlock; - ctx = kzalloc(sizeof *ctx, GFP_KERNEL); + ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); if (!ctx) { ret = -ENOMEM; goto unlock;