vfio: platform: simplify device removal
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 26 Jan 2021 16:58:33 +0000 (17:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:40:02 +0000 (14:40 +0200)
commit1c6ac39763bc2bbee789ad9f7f527066a50abb9a
treed18f1a6fee01849bd281deb01fbf6195058a1e51
parentc93017c8d5ebf55a4e453ac7c84cc84cf92ab570
vfio: platform: simplify device removal

[ Upstream commit 5b495ac8fe03b9e0d2e775f9064c3e2a340ff440 ]

vfio_platform_remove_common() cannot return non-NULL in
vfio_amba_remove() as the latter is only called if vfio_amba_probe()
returned success.

Diagnosed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20210126165835.687514-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vfio/platform/vfio_amba.c