projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e64820
)
ALSA: ctxfi: remove unused variable
author
Sudip Mukherjee
<
[email protected]
>
Tue, 21 Oct 2014 10:58:47 +0000
(16:28 +0530)
committer
Takashi Iwai
<
[email protected]
>
Tue, 21 Oct 2014 14:06:13 +0000
(16:06 +0200)
As of now the pointer to struct dai is not being used anywhere in the
function. So it is safe to remove the variable.
If we are ever doing anything with the container_of(daio, struct dai, daio),
then at that time we can again add the variable.
Signed-off-by: Sudip Mukherjee <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
sound/pci/ctxfi/ctatc.c
patch
|
blob
|
history
diff --git
a/sound/pci/ctxfi/ctatc.c
b/sound/pci/ctxfi/ctatc.c
index 45465907439002b4bf879462f4c6f97955dc9255..632e843fa95e3baf32737a938cf2c9db91bc2873 100644
(file)
--- a/
sound/pci/ctxfi/ctatc.c
+++ b/
sound/pci/ctxfi/ctatc.c
@@
-1145,7
+1145,6
@@
static int atc_release_resources(struct ct_atc *atc)
int i;
struct daio_mgr *daio_mgr = NULL;
struct dao *dao = NULL;
- struct dai *dai = NULL;
struct daio *daio = NULL;
struct sum_mgr *sum_mgr = NULL;
struct src_mgr *src_mgr = NULL;
@@
-1172,9
+1171,6
@@
static int atc_release_resources(struct ct_atc *atc)
dao = container_of(daio, struct dao, daio);
dao->ops->clear_left_input(dao);
dao->ops->clear_right_input(dao);
- } else {
- dai = container_of(daio, struct dai, daio);
- /* some thing to do for dai ... */
}
daio_mgr->put_daio(daio_mgr, daio);
}