summaryrefslogtreecommitdiff
path: root/sound/pci/trident/trident_memory.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2021-06-12 11:34:58 +0800
committerTakashi Iwai <tiwai@suse.de>2021-06-12 09:29:50 +0200
commitfd498bba7c5194cdfc3f0d726f99f0fa3b7e51de (patch)
tree5b1a53e93daa6463117df85e5e16ba17a39f0a13 /sound/pci/trident/trident_memory.c
parent93cd12d6e88a4c6f9204633ff07781cde741e89e (diff)
ALSA: trident: Fix build error
sound/pci/trident/trident_memory.c: In function ‘set_tlb_bus’: sound/pci/trident/trident_memory.c:85:35: error: ‘pagetr’ undeclared (first use in this function); did you mean ‘page’? for (i = 0; i < UNIT_PAGES; i++, pagetr++) { ^~~~~~ page Fixes: 74fb98311c4e ("ALSA: trident: Drop shadow TLB pointer table") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20210612033458.42928-1-yuehaibing@huawei.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/trident/trident_memory.c')
-rw-r--r--sound/pci/trident/trident_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/trident/trident_memory.c b/sound/pci/trident/trident_memory.c
index f831ec02702f..4ad3855101c9 100644
--- a/sound/pci/trident/trident_memory.c
+++ b/sound/pci/trident/trident_memory.c
@@ -82,7 +82,7 @@ static inline void set_tlb_bus(struct snd_trident *trident, int page,
{
int i;
page *= UNIT_PAGES;
- for (i = 0; i < UNIT_PAGES; i++, pagetr++) {
+ for (i = 0; i < UNIT_PAGES; i++, page++) {
__set_tlb_bus(trident, page, addr);
addr += SNDRV_TRIDENT_PAGE_SIZE;
}