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: 1496241 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 441263FE80 for ; Mon, 24 Sep 2012 06:21:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754963Ab2IXGV3 (ORCPT ); Mon, 24 Sep 2012 02:21:29 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:39008 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754923Ab2IXGV2 (ORCPT ); Mon, 24 Sep 2012 02:21:28 -0400 Received: by mail-pb0-f46.google.com with SMTP id rr4so6542460pbb.19 for ; Sun, 23 Sep 2012 23:21:28 -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=c1+5KCLk5rce7CLAHpF9p9GP4etKA3deqRmWaC71e2U=; b=aWlHyIEDFWJE93yQYaECIUyAkOBZpgnuFdieclzRKlTas9xH7IO9rfiTC2CMEi/Aot YrFg59HPCmw0B0eMFJw5ovQEmwEW53qzJgldhvz+rog0cclKNzw4TkcXYE6U2zpUCxQc 2URpqUTHI0eeB40/e6QF+vOfaGuKfx5VTnY6uXOSvkBy9Lo3szJCdkqj9GHoCH4UAqXn 10BHMkWMsZ63e8oVC3cg70uP6Kc0Ds00v1s0os8Zug4qnviTL50vd7qHhBlIokWrF6D5 dYTyyEJU8jUEafo0m8m6fJZK3qrovr5UUX8X14JyeypQM4Iq4t9jJNm97dEe18nlaK2E Ra2g== 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: ALoCoQnSpQ+/S5U9rLJkyMr7OMTdk36KPnKzzcKn3IDBBC3YdsvaCBXdkm1N1D6XX69WvHOzVbk5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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;