Skip to content

Commit a6ed988

Browse files
jnikulaDanilo Krummrich
authored andcommitted
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: 961ae5f ("drm/nouveau: handle pci/tegra drm_dev_{alloc, register} from common code") Cc: Ben Skeggs <[email protected]> Cc: Danilo Krummrich <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 0e8655b commit a6ed988

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/nouveau/nouveau_platform.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ static int nouveau_platform_probe(struct platform_device *pdev)
2626
const struct nvkm_device_tegra_func *func;
2727
struct nvkm_device *device = NULL;
2828
struct drm_device *drm;
29-
int ret;
3029

3130
func = of_device_get_match_data(&pdev->dev);
3231

0 commit comments

Comments
 (0)