Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use __nothing (== ((void)0)) instead of "do {} w...



details:   https://anonhg.NetBSD.org/src/rev/90363d7bc2d2
branches:  trunk
changeset: 448187:90363d7bc2d2
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Jan 25 03:50:13 2019 +0000

description:
Use __nothing (== ((void)0)) instead of "do {} while (/*CONSTCOND*/false)".

diffstat:

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

diffs (27 lines):

diff -r b2275a95ec05 -r 90363d7bc2d2 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Thu Jan 24 22:07:14 2019 +0000
+++ b/sys/dev/pci/if_wm.c       Fri Jan 25 03:50:13 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.618 2019/01/24 04:50:04 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.619 2019/01/25 03:50:13 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.618 2019/01/24 04:50:04 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.619 2019/01/25 03:50:13 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -160,7 +160,7 @@
 
 #define        DPRINTF(x, y)   if (wm_debug & (x)) printf y
 #else
-#define        DPRINTF(x, y)   do { } while (/*CONSTCOND*/false)
+#define        DPRINTF(x, y)   __nothing
 #endif /* WM_DEBUG */
 
 #ifdef NET_MPSAFE



Home | Main Index | Thread Index | Old Index