From patchwork Fri Aug 17 06:22:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10783 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 7223A23F46 for ; Fri, 17 Aug 2012 06:24:58 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 388CEA18E78 for ; Fri, 17 Aug 2012 06:24:58 +0000 (UTC) Received: by ghbg10 with SMTP id g10so3905192ghb.11 for ; Thu, 16 Aug 2012 23:24:57 -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:x-gm-message-state; bh=YikshZ2YPrbbat2CwezKgs2Xj9/rdm9ceu638gVyMsg=; b=kvjeq/4EL+eEZMWBfKeeFoR/t+l16ip+X8ndcF0+ERNUN2qNsw6i+OF0e7XtxUMifF eVTjOsAzXrN/KUMkeJargDMkw+zl+5i4AZAGuzn3YBDrOQX3+qh54LvEn6nIqCnL8TA4 jD+njlhDxss4axjMUM9StpkYZ0tHRD0nhl0qViXoeT1/JR41HDcDKKuQiBy/CvpVWLIJ 8tOBdozrNTataz5MrV6gPLNwiqX9xLvnyuY11KvP/Ir94DLsoa+fx7MPoyQym3oEtW+E 3M5rpHarkf/rEetcaY9A++e0u9p/4xH1vEC374iLFkgdxvQ6KUcsf0wg4meN2Bq90t4K YABQ== Received: by 10.50.186.131 with SMTP id fk3mr727704igc.31.1345184697279; Thu, 16 Aug 2012 23:24:57 -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 ew8csp172737igc; Thu, 16 Aug 2012 23:24:56 -0700 (PDT) Received: by 10.68.195.106 with SMTP id id10mr8882410pbc.121.1345184696480; Thu, 16 Aug 2012 23:24:56 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id vn9si11624137pbc.317.2012.08.16.23.24.56 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 23:24:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.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 dade7 with SMTP id e7so841737dad.37 for ; Thu, 16 Aug 2012 23:24:55 -0700 (PDT) Received: by 10.68.225.196 with SMTP id rm4mr8875347pbc.131.1345184695888; Thu, 16 Aug 2012 23:24:55 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id sr3sm4264899pbc.44.2012.08.16.23.24.52 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 23:24:55 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@infradead.org, k.debski@samsung.com, s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH-Trivial] [media] s5p-mfc: Add missing braces around sizeof Date: Fri, 17 Aug 2012 11:52:55 +0530 Message-Id: <1345184575-14035-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlNNRu+SOaquP6NSVmgdE2HRvhl1ZlMV1Aj5EZnY1KHs41N5oJISQ2rFdqmegADCfVQFZ7N Silences the following warnings: WARNING: sizeof *ctx should be sizeof(*ctx) WARNING: sizeof *dev should be sizeof(*dev) Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) -- 1.7.4.1 diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index e3e616d..815affe 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -649,7 +649,7 @@ static int s5p_mfc_open(struct file *file) return -ERESTARTSYS; dev->num_inst++; /* It is guarded by mfc_mutex in vfd */ /* Allocate memory for context */ - ctx = kzalloc(sizeof *ctx, GFP_KERNEL); + ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); if (!ctx) { mfc_err("Not enough memory\n"); ret = -ENOMEM; @@ -961,7 +961,7 @@ static int s5p_mfc_probe(struct platform_device *pdev) int ret; pr_debug("%s++\n", __func__); - dev = devm_kzalloc(&pdev->dev, sizeof *dev, GFP_KERNEL); + dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); if (!dev) { dev_err(&pdev->dev, "Not enough memory for MFC device\n"); return -ENOMEM;