Skip to contentSkip to conversation

imx-drm: imx-drm-core: fix the build warning

PATCH New Peter Chen 2 participants 2 messages Feb 19, 2014

Subsystems (2)
lore
Share & tools
lore

Peter Chen

author
#0 lore raw

PATCH 1/1 imx-drm: imx-drm-core: fix the build warning

/home/b29397/work/projects/upstream/usb/usb/drivers/staging/imx-drm/imx-drm-core.c: In function 'imx_drm_driver_unload':
/home/b29397/work/projects/upstream/usb/usb/drivers/staging/imx-drm/imx-drm-core.c:87:25: warning: unused variable 'imxdrm' [-Wunused-variable]

---
 drivers/staging/imx-drm/imx-drm-core.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/staging/imx-drm/imx-drm-core.c +0 -2
index 236ed66..573fe88 100644
@@ -84,8 +84,6 @@ static void imx_drm_driver_lastclose(struct drm_device *drm)
 
 static int imx_drm_driver_unload(struct drm_device *drm)
 {
-	struct imx_drm_device *imxdrm = drm->dev_private;
-
 	imx_drm_device_put();
 
 	drm_vblank_cleanup(drm);
Signature · 1 line
1.7.8
#1 lore raw

PATCH 1/1 imx-drm: imx-drm-core: fix the build warning

Hi,

Quoted 14 lines · Peter Chen

/home/b29397/work/projects/upstream/usb/usb/drivers/staging/imx-drm/imx-drm-core.c: In function 'imx_drm_driver_unload':
/home/b29397/work/projects/upstream/usb/usb/drivers/staging/imx-drm/imx-drm-core.c:87:25: warning: unused variable 'imxdrm' [-Wunused-variable]

---
 drivers/staging/imx-drm/imx-drm-core.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/staging/imx-drm/imx-drm-core.c +0 -0
index 236ed66..573fe88 100644

drivers/staging/imx-drm/imx-drm-core.c static void imx_drm_driver_lastclose(struct drm_device *drm) · line 89

Quoted 8 lines
drivers/staging/imx-drm/imx-drm-core.c +0 -2
@@ -84,8 +84,6 @@ static void imx_drm_driver_lastclose(struct drm_device *drm)
 
 static int imx_drm_driver_unload(struct drm_device *drm)
 {
-	struct imx_drm_device *imxdrm = drm->dev_private;
-
 	imx_drm_device_put();
 
 	drm_vblank_cleanup(drm);

You obviously missed: <[email protected]>

Lothar Wa?mann

Signature · 9 lines
___________________________________________________________

Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Gesch?ftsf?hrer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996

www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________