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: 1337321 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 537BE3FC71 for ; Fri, 17 Aug 2012 06:30:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753207Ab2HQGaZ (ORCPT ); Fri, 17 Aug 2012 02:30:25 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:47575 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751662Ab2HQGaY (ORCPT ); Fri, 17 Aug 2012 02:30:24 -0400 Received: by mail-pb0-f46.google.com with SMTP id rr13so2835582pbb.19 for ; Thu, 16 Aug 2012 23:30:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=qg20Q6aH5z7OhWHwYtgZqEvcTp99THZ50pW3C98jKqo=; b=Kl2Xkhe+LaDNcq22GXAha4uOf2oZZ8sQdWhYbNVOxdIWLfEwlxOHc0Bbza+W2gH+B5 rtNp8mDPsXVipmV6fqo9UzB02ZXORAxrVOfjMc1FoNUcsIVU+4Bui0CFmD2Iuwa4mEr0 DBMrysfrYDx7lp+FZ+b+gqvtyJwEZmfVHIZgzQ5cCiuwq/rzboQIDiPz4KcaT1B5AgM7 2ApnHAgxYEDsONtcL0dKa4O7bjyuB1VBE6CoAQMbFOsDlcP2iGv64Znki6w+4eU6CYvy fC82FCX0hu0Dzw7eYrBDaTMfziAzGyXniwYDq3L70DGGrTcC/u4ym8UTexDBMlgWZsZ1 d/QA== 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: ALoCoQl/FuDfVc1/jySkHB+k56WeaoJfF9qQC65bQIQxC75UFrKOnANVqlEAltpU7tPXe135Uce7 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;