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

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
...@@ -803,8 +803,7 @@ static int ath10k_pci_start_ce(struct ath10k *ar) ...@@ -803,8 +803,7 @@ static int ath10k_pci_start_ce(struct ath10k *ar)
continue; continue;
for (i = 0; i < completions; i++) { for (i = 0; i < completions; i++) {
compl = kmalloc(sizeof(struct ath10k_pci_compl), compl = kmalloc(sizeof(*compl), GFP_KERNEL);
GFP_KERNEL);
if (!compl) { if (!compl) {
ath10k_warn("No memory for completion state\n"); ath10k_warn("No memory for completion state\n");
ath10k_pci_stop_ce(ar); ath10k_pci_stop_ce(ar);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment