Skip to contentSkip to conversation

Fix pata_qdi.c probe code

PATCH Applied Samuel Thibault 2 participants 2 messages May 3, 2007 – May 10, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix pata_qdi.c probe code

Hi,

There is a small typo in the probe code of pata_qdi.c, here is a patch.

Samuel

drivers/ata/pata_qdi.c +1 -1
index 27685ce..fb8c9e1 100644
@@ -375,7 +375,7 @@ static __init int qdi_init(void)
 				res = inb(port + 3);
 				if (res & 1) {
 					/* Single channel mode */
-					if (qdi_init_one(port, 6580, ide_port[r & 0x01], ide_irq[r & 0x01], r & 0x04))
+					if (qdi_init_one(port, 6580, ide_port[r & 0x01], ide_irq[r & 0x01], r & 0x04) == 0)
 						ct++;
 				} else {
 					/* Dual channel mode */
Applied
#1 lore raw
Quoted 14 lines · Samuel Thibault

Hi,

There is a small typo in the probe code of pata_qdi.c, here is a patch.

Samuel

------------------------------------------------------------------------

drivers/ata/pata_qdi.c +0 -0
index 27685ce..fb8c9e1 100644

drivers/ata/pata_qdi.c static __init int qdi_init(void) · line 379

Quoted 6 lines
drivers/ata/pata_qdi.c +1 -1
@@ -375,7 +375,7 @@ static __init int qdi_init(void)
 				res = inb(port + 3);
 				if (res & 1) {
 					/* Single channel mode */
-					if (qdi_init_one(port, 6580, ide_port[r & 0x01], ide_irq[r & 0x01], r & 0x04))
+					if (qdi_init_one(port, 6580, ide_port[r & 0x01], ide_irq[r & 0x01], r & 0x04) == 0)
 						ct++;

applied