mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 05:16:53 +07:00
[PATCH] ata_piix: kill spurious assignment in piix_sata_probe()
In piix_sata_probe(), mask gets assigned unnecessarily at the beginning of the function. Kill the assignment. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
parent
06ab78222b
commit
48f80e12ab
@ -415,9 +415,6 @@ static int piix_sata_probe (struct ata_port *ap)
|
|||||||
int orig_mask, mask, i;
|
int orig_mask, mask, i;
|
||||||
u8 pcs;
|
u8 pcs;
|
||||||
|
|
||||||
mask = (PIIX_PORT_PRESENT << ap->hard_port_no) |
|
|
||||||
(PIIX_PORT_ENABLED << ap->hard_port_no);
|
|
||||||
|
|
||||||
pci_read_config_byte(pdev, ICH5_PCS, &pcs);
|
pci_read_config_byte(pdev, ICH5_PCS, &pcs);
|
||||||
orig_mask = (int) pcs & 0xff;
|
orig_mask = (int) pcs & 0xff;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user