]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iwlwifi: mvm: remove useless variable
authorJohannes Berg <johannes.berg@intel.com>
Wed, 30 Apr 2014 12:28:40 +0000 (14:28 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 6 May 2014 17:40:00 +0000 (20:40 +0300)
There's no need to use a variable just to return the result
of another function call at the end of a function, remove it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/phy-ctxt.c

index 237efe0ac1c44dab52d375ced3cb84912aabe082..eafc517a5f9ecfe774c6303a0bc522833e8ac779 100644 (file)
@@ -202,18 +202,15 @@ int iwl_mvm_phy_ctxt_add(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt,
                         struct cfg80211_chan_def *chandef,
                         u8 chains_static, u8 chains_dynamic)
 {
-       int ret;
-
        WARN_ON(!test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status) &&
                ctxt->ref);
        lockdep_assert_held(&mvm->mutex);
 
        ctxt->channel = chandef->chan;
-       ret = iwl_mvm_phy_ctxt_apply(mvm, ctxt, chandef,
-                                    chains_static, chains_dynamic,
-                                    FW_CTXT_ACTION_ADD, 0);
 
-       return ret;
+       return iwl_mvm_phy_ctxt_apply(mvm, ctxt, chandef,
+                                     chains_static, chains_dynamic,
+                                     FW_CTXT_ACTION_ADD, 0);
 }
 
 /*