linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] agp/via: remove unused current_size
@ 2020-01-21  8:48 Alex Shi
  2020-01-21  9:08 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Shi @ 2020-01-21  8:48 UTC (permalink / raw)
  Cc: David Airlie, Arnd Bergmann, Greg Kroah-Hartman, linux-kernel

No one care the current_size, so don't bother to get current_size.

Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Cc: David Airlie <airlied@linux.ie> 
Cc: Arnd Bergmann <arnd@arndb.de> 
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 
Cc: linux-kernel@vger.kernel.org 
---
 drivers/char/agp/via-agp.c | 3 ---
 1 file changed, 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,
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] agp/via: remove unused current_size
  2020-01-21  8:48 [PATCH] agp/via: remove unused current_size Alex Shi
@ 2020-01-21  9:08 ` Arnd Bergmann
  0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2020-01-21  9:08 UTC (permalink / raw)
  To: Alex Shi; +Cc: David Airlie, Greg Kroah-Hartman, linux-kernel

On Tue, Jan 21, 2020 at 9:48 AM Alex Shi <alex.shi@linux.alibaba.com> wrote:
>
> No one care the current_size, so don't bother to get current_size.
>
> Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
> Cc: David Airlie <airlied@linux.ie>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: linux-kernel@vger.kernel.org

Acked-by: Arnd Bergmann <arnd@arndb.de>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-21  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21  8:48 [PATCH] agp/via: remove unused current_size Alex Shi
2020-01-21  9:08 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).