Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266264
b: refs/heads/master
c: 9845ad2
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and John W. Linville committed Sep 19, 2011
1 parent f6daae4 commit 8ddccbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21023e2696679bea2a42aa963de74ce37c049b13
refs/heads/master: 9845ad22fdac09109d230bd4070311c98b119ebe
6 changes: 2 additions & 4 deletions trunk/drivers/net/wireless/iwlwifi/iwl-trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,8 @@ static int iwl_trans_txq_alloc(struct iwl_trans *trans,

txq->q.n_window = slots_num;

txq->meta = kzalloc(sizeof(txq->meta[0]) * slots_num,
GFP_KERNEL);
txq->cmd = kzalloc(sizeof(txq->cmd[0]) * slots_num,
GFP_KERNEL);
txq->meta = kcalloc(slots_num, sizeof(txq->meta[0]), GFP_KERNEL);
txq->cmd = kcalloc(slots_num, sizeof(txq->cmd[0]), GFP_KERNEL);

if (!txq->meta || !txq->cmd)
goto error;
Expand Down

0 comments on commit 8ddccbe

Please sign in to comment.