iwlwifi: mvm: remove pointless num_stored condition
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Apr 2017 07:45:18 +0000 (09:45 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 22 Jun 2017 21:12:59 +0000 (00:12 +0300)
Since we exit if buf->num_stored is 0, there's no need to
check it again later.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

index 966cd75..36fd8c8 100644 (file)
@@ -503,7 +503,7 @@ void iwl_mvm_reorder_timer_expired(unsigned long data)
                             buf->sta_id, sn);
                iwl_mvm_release_frames(buf->mvm, sta, NULL, buf, sn);
                rcu_read_unlock();
-       } else if (buf->num_stored) {
+       } else {
                /*
                 * If no frame expired and there are stored frames, index is now
                 * pointing to the first unexpired frame - modify timer