Date: Sun, 15 Feb 2009 21:54:16 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r188658 - head/sys/dev/ata/chipsets Message-ID: <200902152154.n1FLsGr9000806@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902152154.n1FLsGr9000806>