conf: Remove dead code from virConsoleOpen()

This commit is contained in:
Peter Krempa 2012-07-27 14:48:27 +02:00
parent e72f55fac1
commit 7550bc66f7

View File

@ -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;