From: Jani Nikula Date: Mon, 29 Jul 2024 12:36:24 +0000 (+0300) Subject: drm/nouveau: remove unused variable ret X-Git-Tag: v6.12-rc1~126^2~24^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a6ed988ecdffb2680a65f142acfe3271e6c04ab4;p=thirdparty%2Fkernel%2Flinux.git drm/nouveau: remove unused variable ret Fix build with CONFIG_NOUVEAU_PLATFORM_DRIVER enabled: ../drivers/gpu/drm/nouveau/nouveau_platform.c: In function ‘nouveau_platform_probe’: ../drivers/gpu/drm/nouveau/nouveau_platform.c:29:13: error: unused variable ‘ret’ [-Werror=unused-variable] 29 | int ret; | ^~~ Fixes: 961ae5f9807b ("drm/nouveau: handle pci/tegra drm_dev_{alloc, register} from common code") Cc: Ben Skeggs Cc: Danilo Krummrich Signed-off-by: Jani Nikula Signed-off-by: Danilo Krummrich Link: https://patchwork.freedesktop.org/patch/msgid/20240729123624.868907-1-jani.nikula@intel.com --- diff --git a/drivers/gpu/drm/nouveau/nouveau_platform.c b/drivers/gpu/drm/nouveau/nouveau_platform.c index 3194b110eff87..829fdc6e4031e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_platform.c +++ b/drivers/gpu/drm/nouveau/nouveau_platform.c @@ -26,7 +26,6 @@ static int nouveau_platform_probe(struct platform_device *pdev) const struct nvkm_device_tegra_func *func; struct nvkm_device *device = NULL; struct drm_device *drm; - int ret; func = of_device_get_match_data(&pdev->dev);