diff options
author | Tejun Heo <htejun@gmail.com> | 2007-06-25 10:34:02 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-06-27 02:44:21 -0400 |
commit | 09d7f9b0658072485a93247e1b6e15e661f860d2 (patch) | |
tree | 67001397e2ed0b7fc52406a63a65da297172e504 /drivers/ata | |
parent | 112cc2b510156494918abdf877111dfd56e5643b (diff) |
libata: fix ata_dev_disable()
Fix silly condition check bug in ata_dev_disable().
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index deda68446b43..642097a7d60d 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -600,8 +600,9 @@ static const char *sata_spd_string(unsigned int spd) | |||
600 | 600 | ||
601 | void ata_dev_disable(struct ata_device *dev) | 601 | void ata_dev_disable(struct ata_device *dev) |
602 | { | 602 | { |
603 | if (ata_dev_enabled(dev) && ata_msg_drv(dev->ap)) { | 603 | if (ata_dev_enabled(dev)) { |
604 | ata_dev_printk(dev, KERN_WARNING, "disabled\n"); | 604 | if (ata_msg_drv(dev->ap)) |
605 | ata_dev_printk(dev, KERN_WARNING, "disabled\n"); | ||
605 | ata_down_xfermask_limit(dev, ATA_DNXFER_FORCE_PIO0 | | 606 | ata_down_xfermask_limit(dev, ATA_DNXFER_FORCE_PIO0 | |
606 | ATA_DNXFER_QUIET); | 607 | ATA_DNXFER_QUIET); |
607 | dev->class++; | 608 | dev->class++; |