Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9845ad22 authored by Joe Perches's avatar Joe Perches Committed by John W. Linville
Browse files

iwlagn: Convert kzalloc to kcalloc



Convert kzalloc to kcalloc, coalesce multiple lines too.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 21023e26
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -308,10 +308,8 @@ static int iwl_trans_txq_alloc(struct iwl_trans *trans,


	txq->q.n_window = slots_num;
	txq->q.n_window = slots_num;


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


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