diff options
author | Roel Kluin <12o3l@tiscali.nl> | 2008-03-09 21:42:40 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-03-10 20:51:16 -0400 |
commit | 258cd8464b618d5ec3b836f02cce05e3faf226b4 (patch) | |
tree | cec1247e939f818d3d0ab13fe895df3c3d425e31 | |
parent | 7afb42226a8eaa9ae3f6b9917ffb16902358e749 (diff) | |
download | linux-3.10-258cd8464b618d5ec3b836f02cce05e3faf226b4.tar.gz linux-3.10-258cd8464b618d5ec3b836f02cce05e3faf226b4.tar.bz2 linux-3.10-258cd8464b618d5ec3b836f02cce05e3faf226b4.zip |
ahci: logical-bitwise and confusion in ahci_save_initial_config()
logical-bitwise & confusion
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/ata/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 1d60ef02151..6978469eb16 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -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; |