X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Fcore%2Fsgbuf.c;h=74745da9deb69f4cf171500dc6523435c1839752;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=1ca1f6d01f03e65495d57833ca6f0f1e69ccac34;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/sound/core/sgbuf.c b/sound/core/sgbuf.c index 1ca1f6d01..74745da9d 100644 --- a/sound/core/sgbuf.c +++ b/sound/core/sgbuf.c @@ -51,10 +51,8 @@ int snd_free_sgbuf_pages(struct snd_dma_buffer *dmab) vunmap(dmab->area); dmab->area = NULL; - if (sgbuf->table) - kfree(sgbuf->table); - if (sgbuf->page_table) - kfree(sgbuf->page_table); + kfree(sgbuf->table); + kfree(sgbuf->page_table); kfree(sgbuf); dmab->private_data = NULL;