From: Tejun Heo Date: Mon, 25 Jun 2007 14:34:02 +0000 (+0900) Subject: libata: fix ata_dev_disable() X-Git-Tag: v2.6.22-rc7~40^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=09d7f9b0658072485a93247e1b6e15e661f860d2;p=linux-2.6-omap-h63xx.git libata: fix ata_dev_disable() Fix silly condition check bug in ata_dev_disable(). Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index deda68446b4..642097a7d60 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) void ata_dev_disable(struct ata_device *dev) { - if (ata_dev_enabled(dev) && ata_msg_drv(dev->ap)) { - ata_dev_printk(dev, KERN_WARNING, "disabled\n"); + if (ata_dev_enabled(dev)) { + if (ata_msg_drv(dev->ap)) + ata_dev_printk(dev, KERN_WARNING, "disabled\n"); ata_down_xfermask_limit(dev, ATA_DNXFER_FORCE_PIO0 | ATA_DNXFER_QUIET); dev->class++;