diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2021-12-01 12:46:44 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2022-01-14 15:15:59 +0100 |
commit | a41af4c80a933831b13cfc166257517abec7ab2f (patch) | |
tree | 07cb7ee494ac4408489f0c268b07f909d956a93b /drivers/char/agp | |
parent | c4f7f3117e80fd12f898f24630f146316c809189 (diff) | |
download | linux-stable-a41af4c80a933831b13cfc166257517abec7ab2f.tar.gz linux-stable-a41af4c80a933831b13cfc166257517abec7ab2f.tar.bz2 linux-stable-a41af4c80a933831b13cfc166257517abec7ab2f.zip |
agp/sworks: Remove unused variable 'current_size'
Fix the compiler warning
drivers/char/agp/sworks-agp.c: In function 'serverworks_configure':
drivers/char/agp/sworks-agp.c:265:37: warning: variable 'current_size' set but not used [-Wunused-but-set-variable]
265 | struct aper_size_info_lvl2 *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-7-tzimmermann@suse.de
Diffstat (limited to 'drivers/char/agp')
-rw-r--r-- | drivers/char/agp/sworks-agp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/char/agp/sworks-agp.c b/drivers/char/agp/sworks-agp.c index b15d3d4f71d5..b91da5998dd7 100644 --- a/drivers/char/agp/sworks-agp.c +++ b/drivers/char/agp/sworks-agp.c @@ -262,13 +262,10 @@ static void serverworks_tlbflush(struct agp_memory *temp) static int serverworks_configure(void) { - struct aper_size_info_lvl2 *current_size; u32 temp; u8 enable_reg; u16 cap_reg; - current_size = A_SIZE_LVL2(agp_bridge->current_size); - /* Get the memory mapped registers */ pci_read_config_dword(agp_bridge->dev, serverworks_private.mm_addr_ofs, &temp); temp = (temp & PCI_BASE_ADDRESS_MEM_MASK); |