gallium/targets/xorg: drop set but unused variable entity
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 28 Sep 2013 14:08:24 +0000 (15:08 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 29 Oct 2013 21:04:38 +0000 (21:04 +0000)
The function xf86GetEntityInfo() retrieves the entity rather than
doing any changes. Remove this no-op code.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/targets/r600/xorg/xorg.c
src/gallium/targets/radeonsi/xorg/xorg.c
src/gallium/targets/xorg-i915/intel_xorg.c
src/gallium/targets/xorg-nouveau/nouveau_xorg.c

index 83610fd3fd23e953ccfd9a51093f35d956dc6278..b0b0ef0a2efe1c1753c81ee7b73ad5ce7ec2347d 100644 (file)
@@ -129,7 +129,6 @@ r600_xorg_pci_probe(DriverPtr driver,
          int entity_num, struct pci_device *device, intptr_t match_data)
 {
     ScrnInfoPtr scrn = NULL;
-    EntityInfoPtr entity;
 
     scrn = xf86ConfigPciEntity(scrn, 0, entity_num, r600_xorg_pci_devices,
                               NULL, NULL, NULL, NULL, NULL);
@@ -139,8 +138,6 @@ r600_xorg_pci_probe(DriverPtr driver,
        scrn->name = "R600G";
        scrn->Probe = NULL;
 
-       entity = xf86GetEntityInfo(entity_num);
-
        /* Use all the functions from the xorg tracker */
        xorg_tracker_set_functions(scrn);
     }
index cce7926395309df651ca0eedc60753db9dcb77a2..7858f03ef16a4127ee22c40de98bfae60af6d065 100644 (file)
@@ -129,7 +129,6 @@ radeonsi_xorg_pci_probe(DriverPtr driver,
          int entity_num, struct pci_device *device, intptr_t match_data)
 {
     ScrnInfoPtr scrn = NULL;
-    EntityInfoPtr entity;
 
     scrn = xf86ConfigPciEntity(scrn, 0, entity_num, radeonsi_xorg_pci_devices,
                               NULL, NULL, NULL, NULL, NULL);
@@ -139,8 +138,6 @@ radeonsi_xorg_pci_probe(DriverPtr driver,
        scrn->name = "RADEONSI";
        scrn->Probe = NULL;
 
-       entity = xf86GetEntityInfo(entity_num);
-
        /* Use all the functions from the xorg tracker */
        xorg_tracker_set_functions(scrn);
     }
index 32d4a548bb4d4a9fb9a924aa12464b7a7023b3de..d8eb258b374e3a45ca621a79675dfe1ad0bddfb6 100644 (file)
@@ -128,7 +128,6 @@ intel_xorg_pci_probe(DriverPtr driver,
          int entity_num, struct pci_device *device, intptr_t match_data)
 {
     ScrnInfoPtr scrn = NULL;
-    EntityInfoPtr entity;
 
     scrn = xf86ConfigPciEntity(scrn, 0, entity_num, intel_xorg_pci_devices,
                               NULL, NULL, NULL, NULL, NULL);
@@ -138,8 +137,6 @@ intel_xorg_pci_probe(DriverPtr driver,
        scrn->name = "modesetting";
        scrn->Probe = NULL;
 
-       entity = xf86GetEntityInfo(entity_num);
-
        /* Use all the functions from the xorg tracker */
        xorg_tracker_set_functions(scrn);
     }
index 2324d24445ae56d28386ad57b1d44783a4d6b339..454aea6d48bb9e69d8a9e142e5cccd12c3cbd3e5 100644 (file)
@@ -125,7 +125,6 @@ nouveau_xorg_pci_probe(DriverPtr driver,
          int entity_num, struct pci_device *device, intptr_t match_data)
 {
     ScrnInfoPtr scrn = NULL;
-    EntityInfoPtr entity;
     struct nouveau_device *dev = NULL;
     char *busid;
     int chipset, ret;
@@ -185,8 +184,6 @@ nouveau_xorg_pci_probe(DriverPtr driver,
        scrn->name = "nouveau2";
        scrn->Probe = NULL;
 
-       entity = xf86GetEntityInfo(entity_num);
-
        /* Use all the functions from the xorg tracker */
        xorg_tracker_set_functions(scrn);
     }