diff mbox series

tegra-video: host1x_client_unregister now returns void

Message ID f4ba8b99-1626-393f-8dc6-ae72d5792ac2@xs4all.nl
State New
Headers show
Series tegra-video: host1x_client_unregister now returns void | expand

Commit Message

Hans Verkuil May 25, 2023, 11:33 a.m. UTC
The host1x_client_unregister() function became a void function,
so stop using the error return value.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
diff mbox series

Patch

diff --git a/drivers/staging/media/tegra-video/vip.c b/drivers/staging/media/tegra-video/vip.c
index 6e71d56bc7e3..a1ab886acc18 100644
--- a/drivers/staging/media/tegra-video/vip.c
+++ b/drivers/staging/media/tegra-video/vip.c
@@ -257,11 +257,8 @@  static int tegra_vip_probe(struct platform_device *pdev)
 static int tegra_vip_remove(struct platform_device *pdev)
 {
 	struct tegra_vip *vip = platform_get_drvdata(pdev);
-	int err;

-	err = host1x_client_unregister(&vip->client);
-	if (err)
-		return dev_err_probe(&pdev->dev, err, "failed to unregister host1x client\n");
+	host1x_client_unregister(&vip->client);

 	pm_runtime_disable(&pdev->dev);