From: Bryan O'Donoghue Date: Thu, 19 Dec 2019 13:15:39 +0000 (+0000) Subject: ath10k: pci: Fix comment on ath10k_pci_dump_memory_sram X-Git-Tag: block-5.6-2020-02-05~43^2~11^2^2~20 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=63ec5cbc31f7c37870b7fbd33d9f1a50ba320221;p=linux-block.git 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 4822a65f6f3c..ded7a220a4aa 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -1578,7 +1578,7 @@ static int ath10k_pci_set_ram_config(struct ath10k *ar, u32 config) return 0; } -/* if an error happened returns < 0, otherwise the length */ +/* Always returns the length */ static int ath10k_pci_dump_memory_sram(struct ath10k *ar, const struct ath10k_mem_region *region, u8 *buf)