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/ctresource.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/ctresource.c')
-rw-r--r-- | sound/pci/ctxfi/ctresource.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/ctxfi/ctresource.c b/sound/pci/ctxfi/ctresource.c index da21a717a07a..889c495bb7d1 100644 --- a/sound/pci/ctxfi/ctresource.c +++ b/sound/pci/ctxfi/ctresource.c | |||
@@ -27,7 +27,7 @@ static int | |||
27 | get_resource(u8 *rscs, unsigned int amount, | 27 | get_resource(u8 *rscs, unsigned int amount, |
28 | unsigned int multi, unsigned int *ridx) | 28 | unsigned int multi, unsigned int *ridx) |
29 | { | 29 | { |
30 | int i = 0, j = 0, k = 0, n = 0; | 30 | int i, j, k, n; |
31 | 31 | ||
32 | /* Check whether there are sufficient resources to meet request. */ | 32 | /* Check whether there are sufficient resources to meet request. */ |
33 | for (i = 0, n = multi; i < amount; i++) { | 33 | for (i = 0, n = multi; i < amount; i++) { |
@@ -61,7 +61,7 @@ get_resource(u8 *rscs, unsigned int amount, | |||
61 | 61 | ||
62 | static int put_resource(u8 *rscs, unsigned int multi, unsigned int idx) | 62 | static int put_resource(u8 *rscs, unsigned int multi, unsigned int idx) |
63 | { | 63 | { |
64 | unsigned int i = 0, j = 0, k = 0, n = 0; | 64 | unsigned int i, j, k, n; |
65 | 65 | ||
66 | /* Mark the contiguous bits in resource bit-map as used */ | 66 | /* Mark the contiguous bits in resource bit-map as used */ |
67 | for (n = multi, i = idx; n > 0; n--) { | 67 | for (n = multi, i = idx; n > 0; n--) { |
@@ -76,7 +76,7 @@ static int put_resource(u8 *rscs, unsigned int multi, unsigned int idx) | |||
76 | 76 | ||
77 | int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx) | 77 | int mgr_get_resource(struct rsc_mgr *mgr, unsigned int n, unsigned int *ridx) |
78 | { | 78 | { |
79 | int err = 0; | 79 | int err; |
80 | 80 | ||
81 | if (n > mgr->avail) | 81 | if (n > mgr->avail) |
82 | return -ENOENT; | 82 | return -ENOENT; |