projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06ab782
)
[PATCH] ata_piix: kill spurious assignment in piix_sata_probe()
author
Tejun Heo
<htejun@gmail.com>
Sun, 12 Feb 2006 10:05:07 +0000
(19:05 +0900)
committer
Jeff Garzik
<jgarzik@pobox.com>
Sun, 12 Feb 2006 19:06:42 +0000
(14:06 -0500)
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>
drivers/scsi/ata_piix.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ata_piix.c
b/drivers/scsi/ata_piix.c
index 4933ba284885f90f44db87912f461944d308f5ab..8e0529601730f2c73a57a261d14996c28a6da8a2 100644
(file)
--- a/
drivers/scsi/ata_piix.c
+++ b/
drivers/scsi/ata_piix.c
@@
-415,9
+415,6
@@
static int piix_sata_probe (struct ata_port *ap)
int orig_mask, mask, i;
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);
orig_mask = (int) pcs & 0xff;