Module: Mesa Branch: master Commit: c9e6e6382f8c38b47691495e5a710935115b6702 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9e6e6382f8c38b47691495e5a710935115b6702
Author: Emil Velikov <[email protected]> Date: Sat Sep 28 15:08:24 2013 +0100 gallium/targets/xorg: drop set but unused variable entity The function xf86GetEntityInfo() retrieves the entity rather than doing any changes. Remove this no-op code. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Tom Stellard <[email protected]> --- src/gallium/targets/r600/xorg/xorg.c | 3 --- src/gallium/targets/radeonsi/xorg/xorg.c | 3 --- src/gallium/targets/xorg-i915/intel_xorg.c | 3 --- src/gallium/targets/xorg-nouveau/nouveau_xorg.c | 3 --- 4 files changed, 0 insertions(+), 12 deletions(-) diff --git a/src/gallium/targets/r600/xorg/xorg.c b/src/gallium/targets/r600/xorg/xorg.c index 83610fd..b0b0ef0 100644 --- a/src/gallium/targets/r600/xorg/xorg.c +++ b/src/gallium/targets/r600/xorg/xorg.c @@ -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); } diff --git a/src/gallium/targets/radeonsi/xorg/xorg.c b/src/gallium/targets/radeonsi/xorg/xorg.c index cce7926..7858f03 100644 --- a/src/gallium/targets/radeonsi/xorg/xorg.c +++ b/src/gallium/targets/radeonsi/xorg/xorg.c @@ -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); } diff --git a/src/gallium/targets/xorg-i915/intel_xorg.c b/src/gallium/targets/xorg-i915/intel_xorg.c index 32d4a54..d8eb258 100644 --- a/src/gallium/targets/xorg-i915/intel_xorg.c +++ b/src/gallium/targets/xorg-i915/intel_xorg.c @@ -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); } diff --git a/src/gallium/targets/xorg-nouveau/nouveau_xorg.c b/src/gallium/targets/xorg-nouveau/nouveau_xorg.c index 2324d24..454aea6 100644 --- a/src/gallium/targets/xorg-nouveau/nouveau_xorg.c +++ b/src/gallium/targets/xorg-nouveau/nouveau_xorg.c @@ -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); } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
