Skip to contentSkip to conversation

drivers/ata/ahci.c warning: comparison between ‘enum <anonymous>’ and ‘enum <anonymous>’

PATCH In review René Bolldorf 1 participant 1 message Mar 18, 2010 libata

lore
Share & tools
lore
#0 lore raw

cover drivers/ata/ahci.c warning: comparison between ‘enum <anonymous>’ and ‘enum <anonymous>’

drivers/ata/ahci.c +1 -1
index 108f2c6..f17b114 100644
@@ -998,7 +998,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 
 	VPRINTK("ENTER\n");
 
-	WARN_ON(ATA_MAX_QUEUE > AHCI_MAX_CMDS);
+	WARN_ON(ATA_MAX_QUEUE >= AHCI_MAX_CMDS);
 
 	if (!printed_version++)
 		dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n");