ath10k: pci: Fix comment on ath10k_pci_dump_memory_sram
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Thu, 19 Dec 2019 13:15:39 +0000 (13:15 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 10:21:48 +0000 (12:21 +0200)
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>
drivers/net/wireless/ath/ath10k/pci.c

index 4822a65f6f3c231b58c965c45bc01011270db3e9..ded7a220a4aab29c184c82b3d69d36be5062f2a3 100644 (file)
@@ -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)