From: Johannes Berg Date: Wed, 19 Apr 2017 07:45:18 +0000 (+0200) Subject: iwlwifi: mvm: remove pointless num_stored condition X-Git-Tag: v4.13-rc1~157^2~44^2~20^2~45 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=aeb8012cdfb5dded160295c92e6bfdb6ae5e8aa1;p=karo-tx-linux.git iwlwifi: mvm: remove pointless num_stored condition Since we exit if buf->num_stored is 0, there's no need to check it again later. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c index 966cd7543629..36fd8c87027c 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c @@ -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