Skip to content

Commit

Permalink
iwlagn: remove warning in iwl_rx_handle
Browse files Browse the repository at this point in the history
Txid was used without being initialized.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Emmanuel Grumbach authored and John W. Linville committed Sep 27, 2011
1 parent 1a8f0d3 commit d56da92
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ static void iwl_rx_handle(struct iwl_trans *trans)

while (i != r) {
int len, err;
u16 txq_id, sequence;
u16 sequence;

rxb = rxq->queue[i];

Expand Down Expand Up @@ -452,8 +452,11 @@ static void iwl_rx_handle(struct iwl_trans *trans)

/* warn if this is cmd response / notification and the uCode
* didn't set the SEQ_RX_FRAME for a frame that is
* uCode-originated*/
WARN(txq_id == trans->shrd->cmd_queue && reclaim == false &&
* uCode-originated
* If you saw this code after the second half of 2012, then
* please remove it
*/
WARN(pkt->hdr.cmd != REPLY_TX && reclaim == false &&
(!(pkt->hdr.sequence & SEQ_RX_FRAME)),
"reclaim is false, SEQ_RX_FRAME unset: %s\n",
get_cmd_string(pkt->hdr.cmd));
Expand Down

0 comments on commit d56da92

Please sign in to comment.