aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-07-01 00:40:30 -0400
committerTakashi Iwai <tiwai@suse.de>2014-07-01 05:24:39 -0400
commite2ff8406ade81f5f431a3cac6ef96720c37906cd (patch)
treece3a0284d9ddc8209eab399eea45716136d6d49f /sound/pci
parent8d9048643f32d795fd6dbf71d9dd5469611151cd (diff)
ALSA: trident: Remove unused variable in trident_memory.c
'prev' is not used in the function. Remove it. Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/trident/trident_memory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/trident/trident_memory.c b/sound/pci/trident/trident_memory.c
index 3102a579660b..04c474658e3c 100644
--- a/sound/pci/trident/trident_memory.c
+++ b/sound/pci/trident/trident_memory.c
@@ -139,12 +139,11 @@ static inline void *offset_ptr(struct snd_trident *trident, int offset)
139static struct snd_util_memblk * 139static struct snd_util_memblk *
140search_empty(struct snd_util_memhdr *hdr, int size) 140search_empty(struct snd_util_memhdr *hdr, int size)
141{ 141{
142 struct snd_util_memblk *blk, *prev; 142 struct snd_util_memblk *blk;
143 int page, psize; 143 int page, psize;
144 struct list_head *p; 144 struct list_head *p;
145 145
146 psize = get_aligned_page(size + ALIGN_PAGE_SIZE -1); 146 psize = get_aligned_page(size + ALIGN_PAGE_SIZE -1);
147 prev = NULL;
148 page = 0; 147 page = 0;
149 list_for_each(p, &hdr->block) { 148 list_for_each(p, &hdr->block) {
150 blk = list_entry(p, struct snd_util_memblk, list); 149 blk = list_entry(p, struct snd_util_memblk, list);