Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 276a47a9 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Jeff Garzik
Browse files

pata_cmd640: don't read CFR pointlessly



cmd640_hardware_init() reads CFR but doesn't use the value read...

Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent e42a542b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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) */