From patchwork Mon Jan 14 10:09:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 14026 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 1A94623E2E for ; Mon, 14 Jan 2013 10:18:13 +0000 (UTC) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by fiordland.canonical.com (Postfix) with ESMTP id BD109A19544 for ; Mon, 14 Jan 2013 10:18:12 +0000 (UTC) Received: by mail-vb0-f44.google.com with SMTP id fc26so3426288vbb.3 for ; Mon, 14 Jan 2013 02:18:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=/hNsd2OPnkUqJDAnDO6JLm6acqNp5A3XERC1Ku/Wq0s=; b=DZSg2Jvx0E4jjeuYHaTT39S9DRMEHiYDwigpnNaOYWGoLEHew8/JyuAfxB2k8Kkgdv anarxKu64/gN+h4MygaatWoUu/wt83Umjq65NwUO6U0Ur0n6nfWYiB5ws5ExVSw7Fn/R ala3MhiedggcpARE/bzliyWJAps3Goi0tHXun8znBzRzQpfFz0eCafuPM5A9/HBsdEbx cIBfz55Ksx7xHBkk5zZHxQYlbO1LyU1rE/9+IaHfZwP7NRETQuIjnLXHq42haOiSMJT/ EYyYxfGZodS5MzvL299nAVnuVwYtmme20HEH51YTnBmW0flcUaX6TbQ3CBD97m5G8A1g XRXA== X-Received: by 10.52.176.6 with SMTP id ce6mr88636853vdc.57.1358158692083; Mon, 14 Jan 2013 02:18:12 -0800 (PST) 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.58.145.101 with SMTP id st5csp52544veb; Mon, 14 Jan 2013 02:18:11 -0800 (PST) X-Received: by 10.68.143.162 with SMTP id sf2mr252397206pbb.137.1358158690686; Mon, 14 Jan 2013 02:18:10 -0800 (PST) Received: from mail-da0-f44.google.com (mail-da0-f44.google.com [209.85.210.44]) by mx.google.com with ESMTPS id y9si14111287paw.72.2013.01.14.02.18.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Jan 2013 02:18:10 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.44 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.44 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-da0-f44.google.com with SMTP id z20so1750768dae.3 for ; Mon, 14 Jan 2013 02:18:09 -0800 (PST) X-Received: by 10.66.72.198 with SMTP id f6mr230262874pav.42.1358158689128; Mon, 14 Jan 2013 02:18:09 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id oj5sm7970784pbb.47.2013.01.14.02.18.05 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 14 Jan 2013 02:18:08 -0800 (PST) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: k.debski@samsung.com, s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] [media] s5p-mfc: Use NULL instead of 0 for pointer Date: Mon, 14 Jan 2013 15:39:41 +0530 Message-Id: <1358158181-5356-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmFssU9A36D/wUWczeZw7vq9IDmzY6z0rlJMJ0aU2anGL4mYM0ISWIxPm5sUPWcGPSEeya7 Fixes the following warning: drivers/media/platform/s5p-mfc/s5p_mfc_opr.c:56:27: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat Acked-by: Hans Verkuil --- drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c index b4c1943..10f8ac3 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c @@ -53,7 +53,7 @@ void s5p_mfc_release_priv_buf(struct device *dev, { if (b->virt) { dma_free_coherent(dev, b->size, b->virt, b->dma); - b->virt = 0; + b->virt = NULL; b->dma = 0; b->size = 0; }