svn commit: r188658 - head/sys/dev/ata/chipsets
Alexander Motin
mav at FreeBSD.org
Sun Feb 15 13:54:17 PST 2009
Author: mav
Date: Sun Feb 15 21:54:16 2009
New Revision: 188658
URL: http://svn.freebsd.org/changeset/base/188658
Log:
Remove unneeded AND operation. We have already checked that bit is set.
Modified:
head/sys/dev/ata/chipsets/ata-ahci.c
Modified: head/sys/dev/ata/chipsets/ata-ahci.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-ahci.c Sun Feb 15 21:51:32 2009 (r188657)
+++ head/sys/dev/ata/chipsets/ata-ahci.c Sun Feb 15 21:54:16 2009 (r188658)
@@ -240,7 +240,7 @@ ata_ahci_status(device_t dev)
/* clear interrupt(s) */
ATA_OUTL(ctlr->r_res2, ATA_AHCI_P_IS + offset, istatus);
- ATA_OUTL(ctlr->r_res2, ATA_AHCI_IS, action & (1 << ch->unit));
+ ATA_OUTL(ctlr->r_res2, ATA_AHCI_IS, 1 << ch->unit);
/* do we have any PHY events ? */
if (istatus & (ATA_AHCI_P_IX_PRC | ATA_AHCI_P_IX_PC))
More information about the svn-src-all
mailing list