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))
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to