From: Jon Smirl Date: Sun, 15 Aug 2004 15:46:28 +0000 (+0000) Subject: Fix warning about unused ddev variable X-Git-Tag: submit/1.0/20121108.012404~2034 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c360d6f4f2075c90d42b109e3da932ac5d69699c;p=profile%2Fivi%2Flibdrm.git Fix warning about unused ddev variable --- diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c index a557787..b94e6a7 100644 --- a/linux-core/drm_stub.c +++ b/linux-core/drm_stub.c @@ -80,7 +80,6 @@ static struct file_operations DRM(stub_fops) = { static int drm_hotplug (struct class_device *dev, char **envp, int num_envp, char *buffer, int buffer_size) { - drm_device_t *ddev; struct pci_dev *pdev; char *scratch; int i = 0; @@ -130,6 +129,7 @@ static int drm_hotplug (struct class_device *dev, char **envp, int num_envp, ++length; scratch += length; #if 0 + drm_device_t *ddev; ddev = pci_get_drvdata(pdev); if (ddev) { envp[i++] = scratch; diff --git a/linux/drm_stub.h b/linux/drm_stub.h index a557787..b94e6a7 100644 --- a/linux/drm_stub.h +++ b/linux/drm_stub.h @@ -80,7 +80,6 @@ static struct file_operations DRM(stub_fops) = { static int drm_hotplug (struct class_device *dev, char **envp, int num_envp, char *buffer, int buffer_size) { - drm_device_t *ddev; struct pci_dev *pdev; char *scratch; int i = 0; @@ -130,6 +129,7 @@ static int drm_hotplug (struct class_device *dev, char **envp, int num_envp, ++length; scratch += length; #if 0 + drm_device_t *ddev; ddev = pci_get_drvdata(pdev); if (ddev) { envp[i++] = scratch;