Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Use __BIT(). NFC.



details:   https://anonhg.NetBSD.org/src/rev/67565dc1b23f
branches:  trunk
changeset: 959990:67565dc1b23f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Mar 04 07:24:38 2021 +0000

description:
Use __BIT().  NFC.

diffstat:

 sys/dev/ic/ahcisata_core.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3605ea7d384b -r 67565dc1b23f sys/dev/ic/ahcisata_core.c
--- a/sys/dev/ic/ahcisata_core.c        Thu Mar 04 03:13:54 2021 +0000
+++ b/sys/dev/ic/ahcisata_core.c        Thu Mar 04 07:24:38 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ahcisata_core.c,v 1.95 2021/01/11 16:48:35 skrll Exp $ */
+/*     $NetBSD: ahcisata_core.c,v 1.96 2021/03/04 07:24:38 skrll Exp $ */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.95 2021/01/11 16:48:35 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.96 2021/03/04 07:24:38 skrll Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -604,7 +604,7 @@
                while ((bit = ffs(ports)) != 0) {
                        bit--;
                        ahci_intr_port_common(&sc->sc_channels[bit].ata_channel);
-                       ports &= ~(1U << bit);
+                       ports &= ~__BIT(bit);
                }
                AHCI_WRITE(sc, AHCI_IS, is);
        }



Home | Main Index | Thread Index | Old Index