mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-06 23:06:39 +07:00
ath10k: use sizeof(*var) in kmalloc
This fixes checkpatch warning from the latest 3.11-rc kernel tree. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
7a53f3f38a
commit
ffe5daa873
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user