From bc3ab35d42d4bb321f984806c43b7b991e973716 Mon Sep 17 00:00:00 2001
From: Andre <maan@p133.(none)>
Date: Thu, 15 Jun 2006 08:08:38 +0200
Subject: [PATCH] audiod clean_exit(): Only check status fd once

The close_stat_pipe() already does this check.
---
 audiod.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/audiod.c b/audiod.c
index 90290639..8b9f181b 100644
--- 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);
 }
 
-- 
2.39.5