2002-06-08 19:16:02

by Robert Kuebel

[permalink] [raw]
Subject: [PATCH] [TRIVIAL] remove agpgart_be.c unused variables

This patch removes a few un-needed variables in agpgart_be.c. Patch is
against 2.4.19-pre10.

--- linux-clean/drivers/char/agp/agpgart_be.c Fri Jun 7 23:41:55 2002
+++ linux-dirty/drivers/char/agp/agpgart_be.c Sat Jun 8 00:45:17 2002
@@ -397,7 +397,7 @@
static void agp_generic_agp_enable(u32 mode)
{
struct pci_dev *device = NULL;
- u32 command, scratch, cap_id;
+ u32 command, scratch;
u8 cap_ptr;

pci_read_config_dword(agp_bridge.dev,
@@ -4201,7 +4201,6 @@
{
struct pci_dev *dev = NULL;
u8 cap_ptr = 0x00;
- u32 cap_id, scratch;

if ((dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)) == NULL)
return -ENODEV;