agp/via: Remove unused variable 'current_size'
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 1 Dec 2021 11:46:45 +0000 (12:46 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 14 Jan 2022 14:16:02 +0000 (15:16 +0100)
Fix the compiler warning

  drivers/char/agp/via-agp.c: In function 'via_configure_agp3':
  drivers/char/agp/via-agp.c:131:35: warning: variable 'current_size' set but not used [-Wunused-but-set-variable]
    131 |         struct aper_size_info_16 *current_size;

by removing the variable.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211201114645.15384-8-tzimmermann@suse.de
drivers/char/agp/via-agp.c

index 87a92a044570e0b7daae9f02bb456a6cbac2b07f..dc594f4eca38aabf18212124cd2b5d4dc355cf0f 100644 (file)
@@ -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,