pata_cmd640: don't read CFR pointlessly
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sat, 8 May 2010 18:27:18 +0000 (22:27 +0400)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 14 May 2010 21:35:52 +0000 (17:35 -0400)
cmd640_hardware_init() reads CFR but doesn't use the value read...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_cmd640.c

index 45896b3c65389ad8e43d6a091fbb0563c8c08072..7d2fac645b4cb27b960b3b42b0044c533e1ec66c 100644 (file)
@@ -181,13 +181,10 @@ static struct ata_port_operations cmd640_port_ops = {
 
 static void cmd640_hardware_init(struct pci_dev *pdev)
 {
-       u8 r;
        u8 ctrl;
 
        /* CMD640 detected, commiserations */
        pci_write_config_byte(pdev, 0x5B, 0x00);
-       /* Get version info */
-       pci_read_config_byte(pdev, CFR, &r);
        /* PIO0 command cycles */
        pci_write_config_byte(pdev, CMDTIM, 0);
        /* 512 byte bursts (sector) */