From patchwork Thu Nov 24 08:02:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9444975 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 86DCA60235 for ; Thu, 24 Nov 2016 08:21:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A1ED26D19 for ; Thu, 24 Nov 2016 08:21:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D4982766D; Thu, 24 Nov 2016 08:21:44 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 62A8726D19 for ; Thu, 24 Nov 2016 08:21:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933980AbcKXIV0 (ORCPT ); Thu, 24 Nov 2016 03:21:26 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35862 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932185AbcKXIVY (ORCPT ); Thu, 24 Nov 2016 03:21:24 -0500 Received: by mail-pg0-f67.google.com with SMTP id x23so2876971pgx.3; Thu, 24 Nov 2016 00:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=0xpz4osTWf3Tvm24U0WAG17tSZiFuWHcbsGyQK3Dcu4=; b=qLK6s+DEaVIRGNUF+5N+EVyrVhNpwNaqvOKvbZIWAqeNhAj8MfwMCcmuh8bX0Sih0G hnS/pyRkRX9TeulK4bQTjoc3psbJMLo7ybcHJahMthXonxJNMCDW/YFMrUftrndZMjaI 4zvoV1m1mREPcd68C6nmvn6Ca6FPcYBMAsH3Iu97XiIYdUvvfqYQUS7uIWTdmmxjgQlR aZ+vMrH14inFj/QAiv8sXyq8PPt9BNRtHngMW03MHXLOIVw34QKgXcE0fZhn1Bd2STLA 93PRlx8qwnNl+z/Z+rsBZlK0soKFNjR7grf1i506TB9K1qyHvQzkDwYfAOfy1xUSo1aY ukTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=0xpz4osTWf3Tvm24U0WAG17tSZiFuWHcbsGyQK3Dcu4=; b=cpbNPnkV46XbrtOa03Bylv1OgiNytNPzoVGg0moV50Nr/6LwT4AVUy7HSQaWTuU7Ze +fp8fKPTN1heKwJjSXfesNZdNs0P6bTyLqNNeSPplqMTeDVuOS9aCxcOTBJRXskJDW/K NVQ+IsE9zBLEFfVhla4HGfDzGCnM1NZylEdRfSgDQiZY31OV+iM35QLKSsHVjA7YzMag MgV/8567E8jX5lHd0G5fMH0zrYuu8Kdj5Vvpne+nyuP7qOgt2QJLgoRjDF08bb2CBlc6 ma8B4tUU7UJblpaFDLPtW88UE1JnP7sj2fgD/q5rsB/ToFSgzoOgSNyk8RyBm5BCRdbQ rNCA== X-Gm-Message-State: AKaTC01ha36IJze7YUwTqBGV7jPmzgcej0WXc34kHWlSA1vsmmORrDuxRUt3fXaghejUPw== X-Received: by 10.99.143.90 with SMTP id r26mr1984103pgn.164.1479974568669; Thu, 24 Nov 2016 00:02:48 -0800 (PST) Received: from google.com ([2620:0:1000:1301:e80d:edf6:fd55:23d6]) by smtp.gmail.com with ESMTPSA id t67sm57970256pfg.13.2016.11.24.00.02.47 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 24 Nov 2016 00:02:47 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Thu, 24 Nov 2016 00:02:43 -0800 To: Kalle Valo Cc: Arnd Bergmann , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Raja Mani , Michal Kazior Subject: [PATCH 5/5] ath10k: Removed unused 'dev' in ath10k_ahb_resource_init Message-ID: <7d837ab7846f83add2f5e289ece94d0dbeb82eed.1479974100.git.kirtika@chromium.org> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 Commit 704dc4e36769 introduced ath10k_ahb_resource_init() which defines and sets 'struct device* dev' but does not use it. Compiling with W=1 gives the following warning, fix it. drivers/net/wireless/ath/ath10k/ahb.c: In function ‘ath10k_ahb_resource_init’: drivers/net/wireless/ath/ath10k/ahb.c:449:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] This is a harmless warning, and is only being fixed to reduce the noise with W=1 in the kernel. Fixes: 704dc4e36769 ("ath10k: add resource init and deinit in ahb") Cc: Raja Mani Cc: Kalle Valo Signed-off-by: Kirtika Ruchandani --- drivers/net/wireless/ath/ath10k/ahb.c | 2 -- 1 file changed, 2 deletions(-) -- 2.8.0.rc3.226.g39d4020 diff --git a/drivers/net/wireless/ath/ath10k/ahb.c b/drivers/net/wireless/ath/ath10k/ahb.c index 8078d64..19507fe 100644 --- a/drivers/net/wireless/ath/ath10k/ahb.c +++ b/drivers/net/wireless/ath/ath10k/ahb.c @@ -443,12 +443,10 @@ static int ath10k_ahb_resource_init(struct ath10k *ar) { struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); struct platform_device *pdev; - struct device *dev; struct resource *res; int ret; pdev = ar_ahb->pdev; - dev = &pdev->dev; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!res) {