From 1a96af095a30ec6ae5572bc3ae33b8fdaaaefe61 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 20 Jun 2010 12:53:26 +0200 Subject: [PATCH] remove dead code --- drivers/char/agp/agp.h | 2 +- drivers/char/agp/intel-gtt.c | 18 ------------------ 2 files changed, 1 insertions(+), 19 deletions(-) diff --git a/drivers/char/agp/agp.h b/drivers/char/agp/agp.h index 1204909..81ed395 100644 --- a/drivers/char/agp/agp.h +++ b/drivers/char/agp/agp.h @@ -91,7 +91,7 @@ struct aper_size_info_lvl2 { struct aper_size_info_fixed { int size; int num_entries; - int page_order; + int page_order; /* not actually used anywhere */ }; struct agp_bridge_driver { diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index a754715..cb8c392 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c @@ -775,14 +775,8 @@ static void intel_i830_chipset_flush(struct agp_bridge_data *bridge) */ static int intel_i830_create_gatt_table(struct agp_bridge_data *bridge) { - int page_order; - struct aper_size_info_fixed *size; - int num_entries; u32 temp; - size = agp_bridge->current_size; - page_order = size->page_order; - num_entries = size->num_entries; agp_bridge->gatt_table_real = NULL; pci_read_config_dword(intel_private.pcidev, I810_MMADDR, &temp); @@ -1247,15 +1241,9 @@ static int intel_i915_get_gtt_size(void) */ static int intel_i915_create_gatt_table(struct agp_bridge_data *bridge) { - int page_order; - struct aper_size_info_fixed *size; - int num_entries; u32 temp, temp2; int gtt_map_size; - size = agp_bridge->current_size; - page_order = size->page_order; - num_entries = size->num_entries; agp_bridge->gatt_table_real = NULL; pci_read_config_dword(intel_private.pcidev, I915_MMADDR, &temp); @@ -1355,15 +1343,9 @@ static void intel_i965_get_gtt_range(int *gtt_offset, int *gtt_size) */ static int intel_i965_create_gatt_table(struct agp_bridge_data *bridge) { - int page_order; - struct aper_size_info_fixed *size; - int num_entries; u32 temp; int gtt_offset, gtt_size; - size = agp_bridge->current_size; - page_order = size->page_order; - num_entries = size->num_entries; agp_bridge->gatt_table_real = NULL; pci_read_config_dword(intel_private.pcidev, I915_MMADDR, &temp); -- 1.7.1.15.g43acf