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

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>

authored by

Sachin Kamat and committed by
Takashi Iwai
e2ff8406 8d904864

+1 -2
+1 -2
sound/pci/trident/trident_memory.c
··· 139 139 static struct snd_util_memblk * 140 140 search_empty(struct snd_util_memhdr *hdr, int size) 141 141 { 142 - struct snd_util_memblk *blk, *prev; 142 + struct snd_util_memblk *blk; 143 143 int page, psize; 144 144 struct list_head *p; 145 145 146 146 psize = get_aligned_page(size + ALIGN_PAGE_SIZE -1); 147 - prev = NULL; 148 147 page = 0; 149 148 list_for_each(p, &hdr->block) { 150 149 blk = list_entry(p, struct snd_util_memblk, list);