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: 1971871 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 D22433FD86 for ; Mon, 14 Jan 2013 10:18:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755734Ab3ANKSK (ORCPT ); Mon, 14 Jan 2013 05:18:10 -0500 Received: from mail-da0-f54.google.com ([209.85.210.54]:55039 "EHLO mail-da0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755495Ab3ANKSJ (ORCPT ); Mon, 14 Jan 2013 05:18:09 -0500 Received: by mail-da0-f54.google.com with SMTP id n2so1759541dad.27 for ; Mon, 14 Jan 2013 02:18:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=/hNsd2OPnkUqJDAnDO6JLm6acqNp5A3XERC1Ku/Wq0s=; b=jcGVfZqAr4hqUYKdEbNP38LZzoq77C3I/JSaLg0TpOSh0cMcngClKTdoQTKwxYvjyp kZguOu04dQ/qXKZYJBpTqf027esVTwZs41bNj3gFMOxYN3CEpd5ogvH3kXeuS1pk+ikz GSg9RmvofWmk5eROobqbcvPfPXfkDzb34ECuSRmMaSINpoYGmuvTR8pZE/DM0adUbtSb cXOYqDKI6dfJcYbYpvj5JUuCDSZ8+8+EdMvGtoFPjnTKfW5/WyBguu6aS6DLcyoLT7j8 YgsI04A4by+Hz/fv/GaZ1iYxxD9BkWP2o7YmZve2OOMjqc3yyxj4+JrX/ySQDmEz67rw mkkg== 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: ALoCoQkN1QnG3mPLmEtUua6jmUXVwJ1EVT6RcebESUdny8b7HDZfEvBnEVmbsiVm2l/uj843Wjvw Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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; }