Skip to contentSkip to conversation

agp: remove unused local variable 'current_size'

PATCH New Zhen Lei 1 participant 1 message Apr 8, 2021 Agpgart driver

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 agp: remove unused local variable 'current_size'

Fixes the following W=1 kernel build warning:

drivers/char/agp/via-agp.c: In function ‘via_configure_agp3’:
drivers/char/agp/via-agp.c:131:28: warning: variable ‘current_size’ set but not used [-Wunused-but-set-variable]

---
 drivers/char/agp/via-agp.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/char/agp/via-agp.c +0 -3
index 87a92a044570e0b..dc594f4eca38aab 100644
@@ -128,9 +128,6 @@ static int via_fetch_size_agp3(void)
 static int via_configure_agp3(void)
 {
 	u32 temp;
-	struct aper_size_info_16 *current_size;
-
-	current_size = A_SIZE_16(agp_bridge->current_size);
 
 	/* address to map to */
 	agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev,
Signature · 1 line
1.8.3