Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath10k: pci: Fix comment on ath10k_pci_dump_memory_sram

The description of ath10k_pci_dump_memory_sram() is inaccurate, an error
can never be returned, it is always the length. Update the comment to
reflect.

Fixes: 219cc084c6706 ("ath10k: add memory dump support QCA9984")
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Bryan O'Donoghue and committed by
Kalle Valo
63ec5cbc d2393801

+1 -1
+1 -1
drivers/net/wireless/ath/ath10k/pci.c
··· 1578 1578 return 0; 1579 1579 } 1580 1580 1581 - /* if an error happened returns < 0, otherwise the length */ 1581 + /* Always returns the length */ 1582 1582 static int ath10k_pci_dump_memory_sram(struct ath10k *ar, 1583 1583 const struct ath10k_mem_region *region, 1584 1584 u8 *buf)