|
@@ -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),
|
|
|
|
|
- GFP_KERNEL);
|
|
|
|
|
|
|
+ compl = kmalloc(sizeof(*compl), 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);
|