From 34762fdc56d5294c15e03fda433ecfccdc6c5fb2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 26 May 2007 22:47:48 +0200 Subject: [PATCH] fade.c: simplify open_mixer() open() returns -1 on errors anyway. --- fade.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fade.c b/fade.c index 8da91134..3c622ef0 100644 --- 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); } /* -- 2.39.2