pata_artop: fix "& (1 >>" typo
PATCH 1/1 pata_artop: fix "& (1 >>" typo
Signed-off-by Alexey Dobriyan <[email protected]>
---
drivers/ata/pata_artop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/pata_artop.c +1 -1
@@ -92,7 +92,7 @@ static int artop6260_pre_reset(struct atreturn -ENOENT ;pci_read_config_byte (pdev,0x49 , &tmp); -if (tmp & (1 >> ap->port_no)) +if (tmp & (1 << ap->port_no)) ap->cbl =ATA_CBL_PATA40 ;else ap->cbl =ATA_CBL_PATA80 ;
Quoted 1 line · Alexey Dobriyan
Signed-off-by Alexey Dobriyan <[email protected]>
Acked-by Alan Cox <[email protected]>
Quoted 16 lines
---
drivers/ata/pata_artop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ata/pata_artop.c +1
-1@@ -92,7 +92,7 @@ static int artop6260_pre_reset(struct atreturn -ENOENT ;pci_read_config_byte (pdev,0x49 , &tmp); -if (tmp & (1 >> ap->port_no)) +if (tmp & (1 << ap->port_no)) ap->cbl =ATA_CBL_PATA40 ;else ap->cbl =ATA_CBL_PATA80 ;
Signature · 3 lines
"People who choose variable names like htlbpagek SHOULD be sent to
produce a street map of R'Lyeh. On site."
-- Al ViroJeff Garzik
Appliedapplied