mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
iwlagn: Convert kzalloc to kcalloc
Convert kzalloc to kcalloc, coalesce multiple lines too. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Wey-Yi Guy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
21023e2696
commit
9845ad22fd
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue