Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Add braces.



details:   https://anonhg.NetBSD.org/src/rev/55358284d8ba
branches:  trunk
changeset: 934262:55358284d8ba
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 09 05:07:13 2020 +0000

description:
Add braces.

diffstat:

 sys/arch/x86/x86/identcpu_subr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 9339945328b0 -r 55358284d8ba sys/arch/x86/x86/identcpu_subr.c
--- a/sys/arch/x86/x86/identcpu_subr.c  Tue Jun 09 05:06:27 2020 +0000
+++ b/sys/arch/x86/x86/identcpu_subr.c  Tue Jun 09 05:07:13 2020 +0000
@@ -33,7 +33,7 @@
  * See src/usr.sbin/cpuctl/{Makefile, arch/i386.c}).
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu_subr.c,v 1.5 2020/06/09 05:06:27 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu_subr.c,v 1.6 2020/06/09 05:07:13 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "lapic.h"
@@ -71,7 +71,7 @@
        x86_cpuid(0x15, descs);
        denominator = descs[0];
        numerator = descs[1];
-       if ((denominator != 0) && numerator != 0) {
+       if ((denominator != 0) && (numerator != 0)) {
                khz = 0;
                if (descs[2] != 0)
                        khz = descs[2] / 1000;



Home | Main Index | Thread Index | Old Index