From patchwork Wed Jan 11 16:31:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9510615 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E773606E1 for ; Wed, 11 Jan 2017 16:31:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0E302858A for ; Wed, 11 Jan 2017 16:31:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E59FF2858D; Wed, 11 Jan 2017 16:31:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16C5228478 for ; Wed, 11 Jan 2017 16:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758772AbdAKQbn (ORCPT ); Wed, 11 Jan 2017 11:31:43 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33073 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755628AbdAKQbm (ORCPT ); Wed, 11 Jan 2017 11:31:42 -0500 Received: by mail-pg0-f66.google.com with SMTP id 194so9675051pgd.0 for ; Wed, 11 Jan 2017 08:31:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fcOvMSbw5keCgWhf2nKwyOp5kJ9vci1EZ0TQewzuDKw=; b=CBD3rkWo11/kKi1Yp1rfN3FTDdFK1FcLpNgeqLWXLZmLd4fd0mCZnv42Fb9t7mAgSl NcZvhLkH3RXD2UHglfaKqzGhK1LV8qluGIc9PfZceKD5JE0Yqu5YQYaoCzSxDqHDkhyC a0mqDjcCDX4qOgwxHlWCLfd42F2jWcITuprt6yC9Lb57xLiI2/l62pYH3dy9E7ZYVswe bbmqT0CNun/vuVPCWBsyir0CLC0srNo7y4obeEnZGMxNjR4Nn2hNuoOZHl44LPwcs3Js h8TyuqGgJ7V+BrcFZeej+5fFvSvyDFrNyev4Oj/ggwrbHBimaQ0BZDSX3KDZMtqSrxw/ DqxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fcOvMSbw5keCgWhf2nKwyOp5kJ9vci1EZ0TQewzuDKw=; b=gLhi5qhZNACCJMFk3DZ4jgmAWcQEo+VcAqyXN4qpRsGwW/mD5yu2aUVDcy75y7PiMN iBz2aYxZl9V9b2oL/CjlNuJBdhj8nehrbgzQee+vs4fB1oS8Oa2ZPMiHv1FGcF5uWfL5 0BqyfpQc0XPdOfypV3RA0lpceb58+zNWZQK94if0E19W/R/H3Izxl0+/SYGe8g0fjYwd y2970jYUwewceLmRCrO31VQgIPjcC4dyRaaDkU3bKIfeF/ZEkFASEGZMfCvm/X2TUhnh C930wmS8aIIfLMCau/BXxx90/nlKOMWVmt/nrqV7qqcT+GqQ4YfS/4Wen81dpQqob/kQ mSjw== X-Gm-Message-State: AIkVDXJ1GKxR61WSIKnPie2F9lY7ZK33Hbe9N9H4qj/mYXqEQKM9NZUC/iynmQ0KQis2PQ== X-Received: by 10.99.95.151 with SMTP id t145mr11745326pgb.75.1484152301836; Wed, 11 Jan 2017 08:31:41 -0800 (PST) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id p1sm15135446pgc.29.2017.01.11.08.31.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jan 2017 08:31:41 -0800 (PST) From: Wei Yongjun To: Kalle Valo Cc: Wei Yongjun , linux-wireless@vger.kernel.org Subject: [PATCH net-next] ath6kl: fix warning for using 0 as NULL Date: Wed, 11 Jan 2017 16:31:30 +0000 Message-Id: <20170111163130.19087-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/net/wireless/ath/ath6kl/sdio.c:716:55: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun --- drivers/net/wireless/ath/ath6kl/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c index 8ec66e7..2195b1b 100644 --- a/drivers/net/wireless/ath/ath6kl/sdio.c +++ b/drivers/net/wireless/ath/ath6kl/sdio.c @@ -713,7 +713,7 @@ static void ath6kl_sdio_cleanup_scatter(struct ath6kl *ar) * that the packet is properly freed? */ if (s_req->busrequest) { - s_req->busrequest->scat_req = 0; + s_req->busrequest->scat_req = NULL; ath6kl_sdio_free_bus_req(ar_sdio, s_req->busrequest); } kfree(s_req->virt_dma_buf);