]> err.no Git - linux-2.6/commitdiff
ahci: logical-bitwise and confusion in ahci_save_initial_config()
authorRoel Kluin <12o3l@tiscali.nl>
Sun, 9 Mar 2008 20:42:40 +0000 (21:42 +0100)
committerJeff Garzik <jeff@garzik.org>
Tue, 11 Mar 2008 00:51:16 +0000 (20:51 -0400)
logical-bitwise & confusion

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/ahci.c

index 1d60ef02151acbb02338fdf7ae33701a3fc279fc..6978469eb16d87c9637c2969f6831a17c38cd267 100644 (file)
@@ -684,7 +684,7 @@ static void ahci_save_initial_config(struct pci_dev *pdev,
                cap &= ~HOST_CAP_NCQ;
        }
 
-       if ((cap && HOST_CAP_PMP) && (hpriv->flags & AHCI_HFLAG_NO_PMP)) {
+       if ((cap & HOST_CAP_PMP) && (hpriv->flags & AHCI_HFLAG_NO_PMP)) {
                dev_printk(KERN_INFO, &pdev->dev,
                           "controller can't do PMP, turning off CAP_PMP\n");
                cap &= ~HOST_CAP_PMP;