projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b30367
)
fade.c: simplify open_mixer()
author
Andre Noll
<maan@systemlinux.org>
Sat, 26 May 2007 20:47:48 +0000
(22:47 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 26 May 2007 20:47:48 +0000
(22:47 +0200)
open() returns -1 on errors anyway.
fade.c
patch
|
blob
|
history
diff --git
a/fade.c
b/fade.c
index 8da91134a5208d36700e6aba4aafbc02ebc685ff..3c622ef0f9ec3356169827d2959b75e2f4f7592a 100644
(file)
--- a/
fade.c
+++ b/
fade.c
@@
-55,11
+55,7
@@
void para_log(__a_unused int ll, const char *fmt,...)
*/
static int open_mixer(void)
{
- int mixer_fd;
-
- if ((mixer_fd = open(conf.mixer_device_arg, O_RDWR, 0)) < 0)
- return -1;
- return mixer_fd;
+ return open(conf.mixer_device_arg, O_RDWR, 0);
}
/*