audiod clean_exit(): Only check status fd once
authorAndre <maan@p133.(none)>
Thu, 15 Jun 2006 06:08:38 +0000 (08:08 +0200)
committerAndre <maan@p133.(none)>
Thu, 15 Jun 2006 06:08:38 +0000 (08:08 +0200)
The close_stat_pipe() already does this check.

audiod.c

index 9029063..8b9f181 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -288,8 +288,7 @@ void __noreturn clean_exit(int status, const char *msg)
        PARA_EMERG_LOG("%s\n", msg);
        if (socket_name)
                unlink(socket_name);
-       if (stat_task->fd >= 0)
-               close_stat_pipe();
+       close_stat_pipe();
        exit(status);
 }