[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 1/2] conf: Remove dead code from virConsoleOpen()



---
 src/conf/virconsole.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/conf/virconsole.c b/src/conf/virconsole.c
index 05e2b07..3d12011 100644
--- a/src/conf/virconsole.c
+++ b/src/conf/virconsole.c
@@ -381,15 +381,11 @@ int virConsoleOpen(virConsolesPtr cons,
     if (virFDStreamOpenFile(st, pty, 0, 0, O_RDWR) < 0)
         goto error;

-    savedStream = st;
-    st = NULL;
-
     /* add cleanup callback */
-    virFDStreamSetInternalCloseCb(savedStream,
+    virFDStreamSetInternalCloseCb(st,
                                   virConsoleFDStreamCloseCb,
                                   cbdata,
                                   virConsoleFDStreamCloseCbFree);
-    cbdata = NULL;

     virMutexUnlock(&cons->lock);
     return 0;
-- 
1.7.8.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]