Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 Remove unnecessary brackets and unw...



details:   https://anonhg.NetBSD.org/src/rev/d1af799bcd85
branches:  trunk
changeset: 967971:d1af799bcd85
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Dec 30 15:42:39 2019 +0000

description:
Remove unnecessary brackets and unwrap a conditional.  Same code before
and after.

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 9945eafdaaf1 -r d1af799bcd85 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Mon Dec 30 15:36:37 2019 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Mon Dec 30 15:42:39 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.58 2019/12/28 17:19:43 jmcneill Exp $       */
+/*     $NetBSD: pmap.c,v 1.59 2019/12/30 15:42:39 skrll Exp $  */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.58 2019/12/28 17:19:43 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.59 2019/12/30 15:42:39 skrll Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -323,8 +323,7 @@
                    (va < (VM_KERNEL_IO_ADDRESS + VM_KERNEL_IO_SIZE)));
 
                /* update and check virtual_devmap_addr */
-               if ((virtual_devmap_addr == 0) ||
-                   (virtual_devmap_addr > va)) {
+               if (virtual_devmap_addr == 0 || virtual_devmap_addr > va) {
                        virtual_devmap_addr = va;
                }
 
@@ -423,7 +422,7 @@
 #endif
 
        /* devmap already uses last of va? */
-       if ((virtual_devmap_addr != 0) && (virtual_devmap_addr < vend))
+       if (virtual_devmap_addr != 0 && virtual_devmap_addr < vend)
                vend = virtual_devmap_addr;
 
        virtual_avail = vstart;



Home | Main Index | Thread Index | Old Index