virtio_console: move removal code

commit aa44ec8670 upstream.

Will make it reusable for error handling.

Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Michael S. Tsirkin 2018-04-20 20:51:18 +03:00 • committed by Greg Kroah-Hartman
commit e9287108ac