From patchwork Thu Jul 12 11:39:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9953 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 6CA9024027 for ; Thu, 12 Jul 2012 11:40:21 +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 1790EA186BC for ; Thu, 12 Jul 2012 11:40:21 +0000 (UTC) Received: by ghbz12 with SMTP id z12so2458520ghb.11 for ; Thu, 12 Jul 2012 04:40:20 -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=DjZPXHR8TOx0+QpTLTasJhpuAkSmtYy7w7KmdkeY3PA=; b=BB3cXmovpUkd8UwlcNeEGyXdyhl3kz5TzZKeTUsmyDgBCY1STwP5YrVG64TZ9JImEM jDoVJIDJa+odeCl7ly1n+xAbV9WhYbY1nKks2N2WJFgOVe1NBEPaWvQTFpjjf+Utsd/J qoVzuXyKFAMuN7ikIL9cbXGV6dz8aDcRiZpdIaUkViRZGxYI7B6xNirhaYx928OVG7u4 MHHAHzA3clxjSErchA1kZ8rdsswdHyFjiE8Ex2dzDaC/1mBT29JDAhy0lkZ9yBUT2eoD 9i/SDMohG6WoDFMxptrRUNawAsZAbHkoo+cRY2qLP/wSsCxjMW3ny6cOlU8Fdt4QwNbG FSzQ== Received: by 10.50.40.193 with SMTP id z1mr17333153igk.0.1342093220382; Thu, 12 Jul 2012 04:40:20 -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.231.241.2 with SMTP id lc2csp1925ibb; Thu, 12 Jul 2012 04:40:19 -0700 (PDT) Received: by 10.68.201.7 with SMTP id jw7mr4879670pbc.60.1342093219575; Thu, 12 Jul 2012 04:40:19 -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 te7si3319998pbc.193.2012.07.12.04.40.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jul 2012 04:40:19 -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 pbbrr4 with SMTP id rr4so4383608pbb.37 for ; Thu, 12 Jul 2012 04:40:18 -0700 (PDT) Received: by 10.68.213.67 with SMTP id nq3mr4787899pbc.142.1342093218517; Thu, 12 Jul 2012 04:40:18 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id sy3sm3721728pbc.18.2012.07.12.04.40.04 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jul 2012 04:40:17 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: mchehab@infradead.org, hans.verkuil@cisco.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] [media] videobuf-dma-contig: Use NULL instead of plain integer Date: Thu, 12 Jul 2012 17:09:50 +0530 Message-Id: <1342093190-18597-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQneCDSb9wocT6vaWrZkVguopJoeWpGm0x+LL1vCHfkPYDiLsWuUsvStsa/UpVCvvESyTvME Fixes the following sparse warning: drivers/media/video/videobuf-dma-contig.c:59:46: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat --- drivers/media/video/videobuf-dma-contig.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c index 9b9a06f..a5af8b4 100644 --- a/drivers/media/video/videobuf-dma-contig.c +++ b/drivers/media/video/videobuf-dma-contig.c @@ -56,7 +56,7 @@ static int __videobuf_dc_alloc(struct device *dev, dev_err(dev, "dma_map_single failed\n"); free_pages_exact(mem->vaddr, mem->size); - mem->vaddr = 0; + mem->vaddr = NULL; return err; } }