mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
8d9048643f
commit
e2ff8406ad
1 changed files with 1 additions and 2 deletions
|
@ -139,12 +139,11 @@ static inline void *offset_ptr(struct snd_trident *trident, int offset)
|
||||||
static struct snd_util_memblk *
|
static struct snd_util_memblk *
|
||||||
search_empty(struct snd_util_memhdr *hdr, int size)
|
search_empty(struct snd_util_memhdr *hdr, int size)
|
||||||
{
|
{
|
||||||
struct snd_util_memblk *blk, *prev;
|
struct snd_util_memblk *blk;
|
||||||
int page, psize;
|
int page, psize;
|
||||||
struct list_head *p;
|
struct list_head *p;
|
||||||
|
|
||||||
psize = get_aligned_page(size + ALIGN_PAGE_SIZE -1);
|
psize = get_aligned_page(size + ALIGN_PAGE_SIZE -1);
|
||||||
prev = NULL;
|
|
||||||
page = 0;
|
page = 0;
|
||||||
list_for_each(p, &hdr->block) {
|
list_for_each(p, &hdr->block) {
|
||||||
blk = list_entry(p, struct snd_util_memblk, list);
|
blk = list_entry(p, struct snd_util_memblk, list);
|
||||||
|
|
Loading…
Reference in a new issue