fade.c: simplify open_mixer()
[paraslash.git] / fade.c
diff --git a/fade.c b/fade.c
index 8da9113..3c622ef 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);
 }
 
 /*