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

Commit ffe5daa8 authored by Michal Kazior's avatar Michal Kazior Committed by Kalle Valo
Browse files

ath10k: use sizeof(*var) in kmalloc



This fixes checkpatch warning from the latest
3.11-rc kernel tree.

Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 7a53f3f3
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -803,8 +803,7 @@ static int ath10k_pci_start_ce(struct ath10k *ar)
			continue;

		for (i = 0; i < completions; i++) {
			compl = kmalloc(sizeof(struct ath10k_pci_compl),
					GFP_KERNEL);
			compl = kmalloc(sizeof(*compl), GFP_KERNEL);
			if (!compl) {
				ath10k_warn("No memory for completion state\n");
				ath10k_pci_stop_ce(ar);