diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 4fc3a0f1d8f1..de00be1bffad 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -436,7 +436,7 @@ static int rs_collect_tx_data(struct iwl_rate_scale_data *windows, | |||
436 | /* Shift bitmap by one frame (throw away oldest history), | 436 | /* Shift bitmap by one frame (throw away oldest history), |
437 | * OR in "1", and increment "success" if this | 437 | * OR in "1", and increment "success" if this |
438 | * frame was successful. */ | 438 | * frame was successful. */ |
439 | window->data <<= 1;; | 439 | window->data <<= 1; |
440 | if (successes > 0) { | 440 | if (successes > 0) { |
441 | window->success_counter++; | 441 | window->success_counter++; |
442 | window->data |= 0x1; | 442 | window->data |= 0x1; |
@@ -1128,6 +1128,7 @@ static s32 rs_get_best_rate(struct iwl_priv *priv, | |||
1128 | 1128 | ||
1129 | /* Higher rate not available, use the original */ | 1129 | /* Higher rate not available, use the original */ |
1130 | } else { | 1130 | } else { |
1131 | new_rate = rate; | ||
1131 | break; | 1132 | break; |
1132 | } | 1133 | } |
1133 | } | 1134 | } |