From patchwork Thu Nov 24 04:46:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9444807 X-Patchwork-Delegate: johannes@sipsolutions.net 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 A77576071C for ; Thu, 24 Nov 2016 04:46:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FC1726B39 for ; Thu, 24 Nov 2016 04:46:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 918CE2711E; Thu, 24 Nov 2016 04:46:39 +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 2A99E26B39 for ; Thu, 24 Nov 2016 04:46:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756715AbcKXEqe (ORCPT ); Wed, 23 Nov 2016 23:46:34 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33266 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754354AbcKXEqc (ORCPT ); Wed, 23 Nov 2016 23:46:32 -0500 Received: by mail-pf0-f194.google.com with SMTP id 144so1385403pfv.0; Wed, 23 Nov 2016 20:46:32 -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=G4OvaNTTtfeco32vtVEWrVJE6QDi55ObKG3X1MT9Qrs=; b=VNzbp9KWkpbmNcGouicP2teycUkikxCMwtEmdxtT+BGI7Ie2H8omhmDqQNYf+xlD5P I8+8K7AbzpY/3YIL5Rn3hwSR2tPugcMOJlAXuVnt6j4ViU8nwi3Pf6dzI7WFcItTTCDN Z+zUk3OtD8Pt/T407N7mzODi+FlLw6V2kvbhiDphLWlFkNhX48FofImzdDhcToxeTfr0 8NyIqY4E7MHZvJcERrfsrmcRK5Frvsp5/Y0hmYzwzXY5CO/UQo9HHfJGE0bRmi2ukpRz JU2hirbwL1RsayWs4l3K5BnQUQk934/VlufhbKphFp7C/w8q+Mw6nLKz6FOZZS1PBrK2 Rdug== 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=G4OvaNTTtfeco32vtVEWrVJE6QDi55ObKG3X1MT9Qrs=; b=dP1cniF9z/kb/wjVv2My52VCM8kHIlXphsmvxDYXcbiLTxhCpYcdbpSLEOGfpRmAnh RiyCTaqj/Xd6lMxfk98uSLmEg69SlM59ZbE3/3K+YFmOlIfhNGIPo3raM0c8PkuG4WKI 70Z0jt8jpPxfQEfz2tVrEi5+uCu+Izj96rWoTPEoikdl3lFgfsEj/exaJK82sZWcvLie r9+Ub0sLENYz02/Lh19czdgN+lmj3pSiUq0VKCyJYU9ZifBD0S1VpBwte2P30r7+nasI wTaNZzjJuXLdCRZvym3UWvgQRVk2CLIFqwxHTUR6n26K7q0QDwNWJ9o8RefpEJLZrxxs /K5g== X-Gm-Message-State: AKaTC01JNfQdrpp4MK6rkSibU7WO7470CximCocswUrJW7dRomv8TohewHK8PQaMNSLhjA== X-Received: by 10.84.140.3 with SMTP id 3mr1119882pls.61.1479962792200; Wed, 23 Nov 2016 20:46:32 -0800 (PST) Received: from google.com ([2620:0:1000:1301:e80d:edf6:fd55:23d6]) by smtp.gmail.com with ESMTPSA id b126sm56183865pfg.90.2016.11.23.20.46.31 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Nov 2016 20:46:31 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Wed, 23 Nov 2016 20:46:27 -0800 To: Johannes Berg Cc: Arnd Bergmann , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Marek Kwaczynski , David Spinadel , Alexander Bondar , Michal Kazior Subject: [PATCH 4/4] mac80211: Remove unused 'beaconint_us' variable Message-ID: <9a09ca6fd5eeab860461b1692fdf5274dfa1aee8.1479962513.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 4a733ef1bea7 (mac80211: remove PM-QoS listener) removed all use of 'beaconint_us' from ieee80211_recalc_ps() but left the variable intact. Compiling with W=1 gives the following warning, fix it. net/mac80211/mlme.c: In function ‘ieee80211_recalc_ps’: net/mac80211/mlme.c:1481:7: warning: variable ‘beaconint_us’ set but not used [-Wunused-but-set-variable] iee80211_tu_to_usec has no side-effects and is safe to remove. Fixes: 4a733ef1bea7 ("mac80211: remove PM-QoS listener") Cc: Johannes Berg Signed-off-by: Kirtika Ruchandani --- net/mac80211/mlme.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 7486f2d..e883345 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1478,10 +1478,6 @@ void ieee80211_recalc_ps(struct ieee80211_local *local) if (count == 1 && ieee80211_powersave_allowed(found)) { u8 dtimper = found->u.mgd.dtim_period; - s32 beaconint_us; - - beaconint_us = ieee80211_tu_to_usec( - found->vif.bss_conf.beacon_int); timeout = local->dynamic_ps_forced_timeout; if (timeout < 0)