Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Shuffle a bit to avoid empty loop body.



details:   https://anonhg.NetBSD.org/src/rev/1a75abb6bf26
branches:  trunk
changeset: 341885:1a75abb6bf26
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Nov 27 13:51:57 2015 +0000

description:
Shuffle a bit to avoid empty loop body.

diffstat:

 sys/arch/sparc64/dev/vpci.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 17a1e33d3c78 -r 1a75abb6bf26 sys/arch/sparc64/dev/vpci.c
--- a/sys/arch/sparc64/dev/vpci.c       Fri Nov 27 13:51:24 2015 +0000
+++ b/sys/arch/sparc64/dev/vpci.c       Fri Nov 27 13:51:57 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vpci.c,v 1.5 2015/09/09 03:47:58 palle Exp $   */
+/*     $NetBSD: vpci.c,v 1.6 2015/11/27 13:51:57 joerg Exp $   */
 /*
  * Copyright (c) 2015 Palle Lyckegaard
  * All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vpci.c,v 1.5 2015/09/09 03:47:58 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vpci.c,v 1.6 2015/11/27 13:51:57 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -300,7 +300,8 @@
                    vdma[0], vdma[1]));
                iobase = vdma[0];
                iolen = vdma[1];
-               for (tsbsize = 8; (1 << (tsbsize+23)) > iolen; tsbsize--) ;
+               for (tsbsize = 8; (1 << (tsbsize+23)) > iolen;)
+                       tsbsize--;
                DPRINTF(VDB_BUSMAP, ("vpci_init_iommu: iobase=0x%x  iolen = 0x%x  tsbsize=0x%x\n",
                    iobase, iolen, tsbsize));
                free(vdma, M_DEVBUF);



Home | Main Index | Thread Index | Old Index