Skip to content

Commit

Permalink
pata_cmd640: don't read CFR pointlessly
Browse files Browse the repository at this point in the history
cmd640_hardware_init() reads CFR but doesn't use the value read...

Signed-off-by: Sergei Shtylyov <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
Sergei Shtylyov authored and Jeff Garzik committed May 14, 2010
1 parent e42a542 commit 276a47a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/ata/pata_cmd640.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 276a47a

Please sign in to comment.