summaryrefslogtreecommitdiff
path: root/sound/pci/ctxfi/ctvmem.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-06-08 14:57:57 +0200
committerTakashi Iwai <tiwai@suse.de>2009-06-08 14:57:57 +0200
commit514eef9c2a711b4c24b97bb456d39695a6fe1775 (patch)
tree0d98fb13304707682faa56d136249e9177a54932 /sound/pci/ctxfi/ctvmem.c
parent4836ac655410e7f126d316b0be062b38746f7529 (diff)
ALSA: ctxfi - Remove useless initializations and cast
Remove useless variable initializations and cast at the beginning of functions. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/ctvmem.c')
-rw-r--r--sound/pci/ctxfi/ctvmem.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/pci/ctxfi/ctvmem.c b/sound/pci/ctxfi/ctvmem.c
index b7f8e58ae07d..67665a7e43c6 100644
--- a/sound/pci/ctxfi/ctvmem.c
+++ b/sound/pci/ctxfi/ctvmem.c
@@ -31,8 +31,8 @@
static struct ct_vm_block *
get_vm_block(struct ct_vm *vm, unsigned int size)
{
- struct ct_vm_block *block = NULL, *entry = NULL;
- struct list_head *pos = NULL;
+ struct ct_vm_block *block = NULL, *entry;
+ struct list_head *pos;
size = CT_PAGE_ALIGN(size);
if (size > vm->size) {
@@ -77,8 +77,8 @@ get_vm_block(struct ct_vm *vm, unsigned int size)
static void put_vm_block(struct ct_vm *vm, struct ct_vm_block *block)
{
- struct ct_vm_block *entry = NULL, *pre_ent = NULL;
- struct list_head *pos = NULL, *pre = NULL;
+ struct ct_vm_block *entry, *pre_ent;
+ struct list_head *pos, *pre;
block->size = CT_PAGE_ALIGN(block->size);
@@ -223,8 +223,8 @@ int ct_vm_create(struct ct_vm **rvm)
void ct_vm_destroy(struct ct_vm *vm)
{
int i;
- struct list_head *pos = NULL;
- struct ct_vm_block *entry = NULL;
+ struct list_head *pos;
+ struct ct_vm_block *entry;
/* free used and unused list nodes */
while (!list_empty(&vm->used)) {