virtio_console: move removal code
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 20 Apr 2018 17:51:18 +0000 (20:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 May 2018 19:58:12 +0000 (12:58 -0700)
commite9287108acce9b3611bc45a76801fbe242347e60
tree72b3c571b856894ded7fbb181ffdb6ddcc80cfe6
parent75fc6f2d39bfe32db91980408247edc77d189a5a
virtio_console: move removal code

commit aa44ec867030a72e8aa127977e37dec551d8df19 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>
drivers/char/virtio_console.c