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 in a co...
details: https://anonhg.NetBSD.org/src/rev/43f5ee0e25f6
branches: trunk
changeset: 989993:43f5ee0e25f6
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Oct 23 05:42:49 2021 +0000
description:
Remove unnecessary brackets in a conditional
diffstat:
sys/arch/aarch64/aarch64/cpufunc.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r f859ded14252 -r 43f5ee0e25f6 sys/arch/aarch64/aarch64/cpufunc.c
--- a/sys/arch/aarch64/aarch64/cpufunc.c Sat Oct 23 05:32:40 2021 +0000
+++ b/sys/arch/aarch64/aarch64/cpufunc.c Sat Oct 23 05:42:49 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufunc.c,v 1.28 2021/09/23 06:34:00 skrll Exp $ */
+/* $NetBSD: cpufunc.c,v 1.29 2021/10/23 05:42:49 skrll Exp $ */
/*
* Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -30,7 +30,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.28 2021/09/23 06:34:00 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.29 2021/10/23 05:42:49 skrll Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -215,10 +215,10 @@
}
/* calculate L1 icache virtual index size */
- if (((cinfo[0].icache.cache_type == CACHE_TYPE_VIVT) ||
- (cinfo[0].icache.cache_type == CACHE_TYPE_VIPT)) &&
- ((cinfo[0].cacheable == CACHE_CACHEABLE_ICACHE) ||
- (cinfo[0].cacheable == CACHE_CACHEABLE_IDCACHE))) {
+ if ((cinfo[0].icache.cache_type == CACHE_TYPE_VIVT ||
+ cinfo[0].icache.cache_type == CACHE_TYPE_VIPT) &&
+ (cinfo[0].cacheable == CACHE_CACHEABLE_ICACHE ||
+ cinfo[0].cacheable == CACHE_CACHEABLE_IDCACHE)) {
vindexsize =
cinfo[0].icache.cache_size /
Home |
Main Index |
Thread Index |
Old Index