diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2021-12-01 14:46:45 +0300 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2022-01-14 17:16:02 +0300 |
commit | a320c3a3280b0765ffaa5a15a8e6f5d7909d8df9 (patch) | |
tree | da38c887df92b70772faac735f935c8e087d02cc /drivers/char/agp | |
parent | a41af4c80a933831b13cfc166257517abec7ab2f (diff) | |
download | linux-a320c3a3280b0765ffaa5a15a8e6f5d7909d8df9.tar.xz |
agp/via: Remove unused variable 'current_size'
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
Diffstat (limited to 'drivers/char/agp')
-rw-r--r-- | drivers/char/agp/via-agp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/char/agp/via-agp.c b/drivers/char/agp/via-agp.c index 87a92a044570..dc594f4eca38 100644 --- a/drivers/char/agp/via-agp.c +++ b/drivers/char/agp/via-agp.c @@ -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, |