virtio_console: move removal code

commit aa44ec8670 upstream.

Will make it reusable for error handling.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Michael S. Tsirkin 2018-04-20 20:51:18 +03:00 • committed by Ben Hutchings
commit da1ced7c0d