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>
Thu, 28 Nov 2019 17:29:05 +0000 (18:29 +0100)
commitf79198530d65175c01b828d8613297686df23f2c
treee9a363d80f96ef28268478d1ea64b40171114fc6
parent083aae5aecf5c60f9d2be12d9d60fec86d214b39
virtio_console: move removal code

[ Upstream commit aa44ec867030a72e8aa127977e37dec551d8df19 ]

Will make it reusable for error handling.

Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/virtio_console.c