From patchwork Thu Aug 16 11:52:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10769 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 52F5523E37 for ; Thu, 16 Aug 2012 11:54:52 +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 05F54A18C93 for ; Thu, 16 Aug 2012 11:54:51 +0000 (UTC) Received: by ghbg10 with SMTP id g10so2944714ghb.11 for ; Thu, 16 Aug 2012 04:54:51 -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=CY/BLm5DWOYEhgMV8lULtOOG+KaFFf5g8ctaovxPVd0=; b=TQDo0OqvHnYHMRMXwaZzFXVb5C2EaPPGTqN1Q+c/6tRO+Zwzt/MHXjNeee0stbE6Y0 D+FONb1iSrgBXJ992p8NNf912CudAvvJZXS2QhGKFXA2sp+UojUdAUMxSky1r1xzOyli yXIoi+gWAgcEGzLT6KsqE5zQrfDAugJrYXfzKu0Rj6piP2LKuYCFNKTerszlUCtW/OMN RPYJgdt6Ualz7DcikApCeh8BPnWqaAofxx1Bb9tni4rdD04W3lTNzbY4sb2PepWKf9E+ utHM8K/GC26zd7sVyiNurEOeRKWkft3wlbiTTHTgp0QJQjrneu4XmX9rzuDZR/gLnRhO Os1A== Received: by 10.42.75.73 with SMTP id z9mr801983icj.46.1345118091227; Thu, 16 Aug 2012 04:54:51 -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 ew8csp121218igc; Thu, 16 Aug 2012 04:54:50 -0700 (PDT) Received: by 10.68.200.227 with SMTP id jv3mr2822636pbc.162.1345118089940; Thu, 16 Aug 2012 04:54:49 -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 ms7si7468598pbb.328.2012.08.16.04.54.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 04:54:49 -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 md12so1714253pbc.37 for ; Thu, 16 Aug 2012 04:54:49 -0700 (PDT) Received: by 10.66.9.2 with SMTP id v2mr1751201paa.65.1345118089369; Thu, 16 Aug 2012 04:54:49 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id iq1sm2540393pbc.37.2012.08.16.04.54.46 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 04:54:48 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@infradead.org, s.nawrocki@samsung.com, andrzej.p@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH Trivial] [media] s5p-jpeg: Add missing braces around sizeof Date: Thu, 16 Aug 2012 17:22:58 +0530 Message-Id: <1345117978-3374-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQm7lG+fA+Wposq4F5Si2k1o3e1xUda4sLjzx+UfHQKBdaBwYCpyCiKqhpKEIud006vz0NDF Silences the following warning: WARNING: sizeof *ctx should be sizeof(*ctx) Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 72c3e52..ae916cd 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -288,7 +288,7 @@ static int s5p_jpeg_open(struct file *file) struct s5p_jpeg_fmt *out_fmt; int ret = 0; - ctx = kzalloc(sizeof *ctx, GFP_KERNEL); + ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); if (!ctx) return -ENOMEM;