Skip to contentSkip to conversation

drm/nouveau/bios: remove unused variable.

PATCH New Muhammad Falak R Wani 1 participant 1 message May 11, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau/bios: remove unused variable.

Remove unused vairable, return 0 explicitly.

---
 drivers/gpu/drm/nouveau/nouveau_bios.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/nouveau/nouveau_bios.c +1 -2
index 4dca65a..5449838 100644
@@ -2039,7 +2039,6 @@ nouveau_run_vbios_init(struct drm_device *dev)
 {
 	struct nouveau_drm *drm = nouveau_drm(dev);
 	struct nvbios *bios = &drm->vbios;
-	int ret = 0;
 
 	/* Reset the BIOS head to 0. */
 	bios->state.crtchead = 0;
@@ -2052,7 +2051,7 @@ nouveau_run_vbios_init(struct drm_device *dev)
 		bios->fp.lvds_init_run = false;
 	}
 
-	return ret;
+	return 0;
 }
 
 static bool
Signature · 1 line
1.9.1