From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from paleale.coelho.fi ([176.9.41.70]:48902 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751520AbcKIHbI (ORCPT ); Wed, 9 Nov 2016 02:31:08 -0500 Message-ID: <1478676664.3313.16.camel@coelho.fi> (sfid-20161109_083111_768107_812198D9) From: Luca Coelho To: Kirtika Ruchandani Cc: linux-wireless@vger.kernel.org, Arnd Bergmann , Kalle Valo , Emmanuel Grumbach , Johannes Berg , Sara Sharon , Eran Harary , Liad Kaufman , Eyal Shapira , Alexander Bondar Date: Wed, 09 Nov 2016 09:31:04 +0200 In-Reply-To: <20161109055048.GA27520@google.com> References: <20161109055048.GA27520@google.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Subject: Re: [PATCH v2 3/3] iwlwifi: pcie: trans: Remove unused 'shift_param' Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, 2016-11-08 at 21:50 -0800, Kirtika Ruchandani wrote: > shift_param is defined and set in iwl_pcie_load_cpu_sections > but not used. Fix this to avoid -Wunused-but-set-variable > warning. > The code using it turned into dead code with commit dcab8ecd5617 > which added a separate function iwl_pcie_load_given_ucode_8000 > (then 8000b) for IWL_DEVICE_FAMILY_8000. Commit 76f8c0e17edc > removed the dead code but left shift_param as is. > > iwlwifi/pcie/trans.c: In function ‘iwl_pcie_load_cpu_sections’: > iwlwifi/pcie/trans.c:871:6: warning: variable ‘shift_param’ set but not used [-Wunused-but-set-variable] > > Fixes: dcab8ecd5617 (iwlwifi: mvm: support ucode load for family_8000 B0 only) > Fixes: 76f8c0e17edc (iwlwifi: pcie: remove dead code) > > Signed-off-by: Kirtika Ruchandani > Cc: Sara Sharon > Cc: Luca Coelho > Cc: Eran Harary I'll remove Harary's Cc here too, since this email is not valid anymore and I don't know his new one (and he probably doesn't care anymore anyway). -- Luca.