From patchwork Thu Nov 24 08:02:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9444971 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 43BA660235 for ; Thu, 24 Nov 2016 08:16:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3488026E5D for ; Thu, 24 Nov 2016 08:16:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27845271BC; Thu, 24 Nov 2016 08:16:20 +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 B277726E5D for ; Thu, 24 Nov 2016 08:16:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933657AbcKXIQN (ORCPT ); Thu, 24 Nov 2016 03:16:13 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33894 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933514AbcKXIQM (ORCPT ); Thu, 24 Nov 2016 03:16:12 -0500 Received: by mail-pf0-f195.google.com with SMTP id y68so1630350pfb.1; Thu, 24 Nov 2016 00:16:11 -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=Pe9RiYfnbZjt7dSsp7th4FxtH5HE20/q1NNU+/i3QNU=; b=sBWt+ULZO0JeqpS1VZjVC1ZWIb4Jye7oweXUUD29G2ZmVA49NeWERXutcBypD3pyhl iOhkqC+P82vA00pl36iGAF5CKINaOmzR+x0eiv4VdJ3Cr7sQqN5MXOY7oRY0zzy9ZtN6 Ycy/rQ7SoZSDyIGRCIc5zrjVOGmwRyH+5X880S2r8g/mVS4JK0sOfgWG5z+y1IxvXTQO 2Jvq1JGDHzEd+/AMfF1MZWORZTjyWfiNJpnnqglPTF84d3HwZGQQDz9igFCWR1S5pMwX pKsAq0p8BfM8t92Kiv2PzZRPMtl7rtTiiwUXX8PEg2yCYm/bBiq/OczT6ncBBQove3gE 7/kA== 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=Pe9RiYfnbZjt7dSsp7th4FxtH5HE20/q1NNU+/i3QNU=; b=l9N2969EH+CDeqCzyiF6xYz0CavPx2b+hjjfeu16FDbNUUCKN4UG7+KSE0SwfDrlx6 YUgFAwbN4YHmhwmUOhR8uG8kbzbBC9U+O2Vv9CU/ga5ehXKAFFnr2mB8OFlLe8jQGwnX syMKokap0kmoJJD7gz0QCXNxXiRjmfbgC4ulVFqkLIJ/czmW+joPG+J3/JM4C6VtEAvF re8UTU6kQLjNWwFUWBSWs+FnKByl1yAq3+ISOIbjW5tPYBxG20pC3cr5qZKCv8qDkQbt r84Hpzcw38D3Mkq/kRbkrlRv729+Zu4tZwJwJI6DKzrTuU2Trx3BhsftAvDOAFoieYpA 9ETA== X-Gm-Message-State: AKaTC03OWEythvuojazcCdhLo7tbAJtyccda//NeN7ior13yFcwmXIyCwlZ2MpQjndwfLA== X-Received: by 10.84.170.195 with SMTP id j61mr2614332plb.13.1479974538562; Thu, 24 Nov 2016 00:02:18 -0800 (PST) Received: from google.com ([2620:0:1000:1301:e80d:edf6:fd55:23d6]) by smtp.gmail.com with ESMTPSA id a22sm57975106pfg.7.2016.11.24.00.02.17 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 24 Nov 2016 00:02:17 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Thu, 24 Nov 2016 00:02:13 -0800 To: Kalle Valo Cc: Arnd Bergmann , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Raja Mani , Michal Kazior Subject: [PATCH 4/5] ath10k: Removed unused 'dev' in ath10k_ahb_clock_enable() Message-ID: 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 8beff219c528 introduced ath10k_ahb_clock_enable() 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_clock_enable’: drivers/net/wireless/ath/ath10k/ahb.c:133: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: 8beff219c528("ath10k: add clock ctrl related functions in ahb") Cc: Raja Mani Cc: Kalle Valo Signed-off-by: Kirtika Ruchandani --- drivers/net/wireless/ath/ath10k/ahb.c | 3 --- 1 file changed, 3 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 766c63b..8078d64 100644 --- a/drivers/net/wireless/ath/ath10k/ahb.c +++ b/drivers/net/wireless/ath/ath10k/ahb.c @@ -130,11 +130,8 @@ static void ath10k_ahb_clock_deinit(struct ath10k *ar) static int ath10k_ahb_clock_enable(struct ath10k *ar) { struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); - struct device *dev; int ret; - dev = &ar_ahb->pdev->dev; - if (IS_ERR_OR_NULL(ar_ahb->cmd_clk) || IS_ERR_OR_NULL(ar_ahb->ref_clk) || IS_ERR_OR_NULL(ar_ahb->rtc_clk)) {