Commit 4f3e0d66 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGPGART] Remove unneeded test.

Spotted by ISHIKAWA Mutsumi <ishikawa@debian.org>
parent 9c6c0b9e
...@@ -416,17 +416,16 @@ void agp_generic_enable(u32 mode) ...@@ -416,17 +416,16 @@ void agp_generic_enable(u32 mode)
} }
#endif #endif
if (major < 3) { /* AGP v<3 */
pci_read_config_dword(agp_bridge->dev, pci_read_config_dword(agp_bridge->dev,
agp_bridge->capndx + PCI_AGP_STATUS, &command); agp_bridge->capndx + PCI_AGP_STATUS, &command);
command = agp_collect_device_status(mode, command); command = agp_collect_device_status(mode, command);
command |= 0x100; command |= 0x100;
pci_write_config_dword(agp_bridge->dev, pci_write_config_dword(agp_bridge->dev,
agp_bridge->capndx + PCI_AGP_COMMAND, command); agp_bridge->capndx + PCI_AGP_COMMAND, command);
agp_device_command(command, 0); agp_device_command(command, 0);
}
} }
int agp_generic_create_gatt_table(void) int agp_generic_create_gatt_table(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment