diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-08 08:57:57 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-08 08:57:57 -0400 |
commit | 514eef9c2a711b4c24b97bb456d39695a6fe1775 (patch) | |
tree | 0d98fb13304707682faa56d136249e9177a54932 /sound/pci/ctxfi/ctvmem.c | |
parent | 4836ac655410e7f126d316b0be062b38746f7529 (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.c | 12 |
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 @@ | |||
31 | static struct ct_vm_block * | 31 | static struct ct_vm_block * |
32 | get_vm_block(struct ct_vm *vm, unsigned int size) | 32 | get_vm_block(struct ct_vm *vm, unsigned int size) |
33 | { | 33 | { |
34 | struct ct_vm_block *block = NULL, *entry = NULL; | 34 | struct ct_vm_block *block = NULL, *entry; |
35 | struct list_head *pos = NULL; | 35 | struct list_head *pos; |
36 | 36 | ||
37 | size = CT_PAGE_ALIGN(size); | 37 | size = CT_PAGE_ALIGN(size); |
38 | if (size > vm->size) { | 38 | if (size > vm->size) { |
@@ -77,8 +77,8 @@ get_vm_block(struct ct_vm *vm, unsigned int size) | |||
77 | 77 | ||
78 | static void put_vm_block(struct ct_vm *vm, struct ct_vm_block *block) | 78 | static void put_vm_block(struct ct_vm *vm, struct ct_vm_block *block) |
79 | { | 79 | { |
80 | struct ct_vm_block *entry = NULL, *pre_ent = NULL; | 80 | struct ct_vm_block *entry, *pre_ent; |
81 | struct list_head *pos = NULL, *pre = NULL; | 81 | struct list_head *pos, *pre; |
82 | 82 | ||
83 | block->size = CT_PAGE_ALIGN(block->size); | 83 | block->size = CT_PAGE_ALIGN(block->size); |
84 | 84 | ||
@@ -223,8 +223,8 @@ int ct_vm_create(struct ct_vm **rvm) | |||
223 | void ct_vm_destroy(struct ct_vm *vm) | 223 | void ct_vm_destroy(struct ct_vm *vm) |
224 | { | 224 | { |
225 | int i; | 225 | int i; |
226 | struct list_head *pos = NULL; | 226 | struct list_head *pos; |
227 | struct ct_vm_block *entry = NULL; | 227 | struct ct_vm_block *entry; |
228 | 228 | ||
229 | /* free used and unused list nodes */ | 229 | /* free used and unused list nodes */ |
230 | while (!list_empty(&vm->used)) { | 230 | while (!list_empty(&vm->used)) { |