mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
conf: Remove dead code from virConsoleOpen()
This commit is contained in:
parent
e72f55fac1
commit
7550bc66f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user