Skip to contentSkip to conversation

pata_artop: fix "& (1 >>" typo

PATCH Applied Alexey Dobriyan 3 participants 3 messages Nov 10, 2006 – Nov 14, 2006 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pata_artop: fix "& (1 >>" typo

---

 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 at
 		return -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;
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Alexey Dobriyan
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 at
 		return -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 Viro