From patchwork Sun Oct 13 08:57:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11187315 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D78E14ED for ; Sun, 13 Oct 2019 09:00:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1463F20700 for ; Sun, 13 Oct 2019 09:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570957201; bh=pn8hSh8Fe79AwCHNy+N56x9s85BACA/JfjKLjRPEA4k=; h=From:To:Cc:Subject:Date:List-ID:From; b=rSg1A3q54qMJGtcWzTHWJELVpTEsQkHqHwfRzq14XGUnts2MDnhThOkub2mfOUMCX oZODLD+986pK3J95BlZkioWhoBQmdc+Q8c70WqLYHKIoJGEwOjeLTf/7UOGQXAQ/RH GNTdSQHrGZj+Lv5VHTQMLWanUhZAm42Ay3pX5iBg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728311AbfJMI7y (ORCPT ); Sun, 13 Oct 2019 04:59:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:43036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728080AbfJMI7y (ORCPT ); Sun, 13 Oct 2019 04:59:54 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5BDDA206B7; Sun, 13 Oct 2019 08:59:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570957194; bh=pn8hSh8Fe79AwCHNy+N56x9s85BACA/JfjKLjRPEA4k=; h=From:To:Cc:Subject:Date:From; b=QsP7AbYPJ8Fmcl2C+tpxgieIxXQbwsq2sNSy19lMqG7KjxVE7V0lWSJMvWn/bVyhv DuOx1pSzEEQz/7jI66oO+vrjn3AxNYXXr2fnQ4FbQGh37R6T/M81pwSieOC/N4cBih EGBS8yhdAhARxyl8duhv3/62/it6daoq6Y8L/zoY= From: jic23@kernel.org To: linux-iio@vger.kernel.org Cc: Jonathan Cameron , Eugen Hristev Subject: [PATCH] iio:adc:at91-sama5d2: Replace 0 with NULL when clearing some pointers. Date: Sun, 13 Oct 2019 09:57:23 +0100 Message-Id: <20191013085723.1366012-1-jic23@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Cleans up the sparse warning: CHECK drivers/iio/adc/at91-sama5d2_adc.c drivers/iio/adc/at91-sama5d2_adc.c:1486:31: warning: Using plain integer as NULL pointer drivers/iio/adc/at91-sama5d2_adc.c:1509:31: warning: Using plain integer as NULL pointer Signed-off-by: Jonathan Cameron Cc: Eugen Hristev Reviewed-by: Eugen Hristev --- drivers/iio/adc/at91-sama5d2_adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c index a2837a0e7cba..e1850f3d5cf3 100644 --- a/drivers/iio/adc/at91-sama5d2_adc.c +++ b/drivers/iio/adc/at91-sama5d2_adc.c @@ -1483,7 +1483,7 @@ static void at91_adc_dma_init(struct platform_device *pdev) st->dma_st.rx_buf, st->dma_st.rx_dma_buf); dma_chan_disable: dma_release_channel(st->dma_st.dma_chan); - st->dma_st.dma_chan = 0; + st->dma_st.dma_chan = NULL; dma_exit: dev_info(&pdev->dev, "continuing without DMA support\n"); } @@ -1506,7 +1506,7 @@ static void at91_adc_dma_disable(struct platform_device *pdev) dma_free_coherent(st->dma_st.dma_chan->device->dev, pages * PAGE_SIZE, st->dma_st.rx_buf, st->dma_st.rx_dma_buf); dma_release_channel(st->dma_st.dma_chan); - st->dma_st.dma_chan = 0; + st->dma_st.dma_chan = NULL; dev_info(&pdev->dev, "continuing without DMA support\n"); }