Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/pic KNF



details:   https://anonhg.NetBSD.org/src/rev/bec955e78af0
branches:  trunk
changeset: 960612:bec955e78af0
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Mar 23 08:07:23 2021 +0000

description:
KNF

diffstat:

 sys/arch/powerpc/pic/intr.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r d705581d988b -r bec955e78af0 sys/arch/powerpc/pic/intr.c
--- a/sys/arch/powerpc/pic/intr.c       Tue Mar 23 07:21:40 2021 +0000
+++ b/sys/arch/powerpc/pic/intr.c       Tue Mar 23 08:07:23 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.32 2021/03/22 01:36:10 rin Exp $ */
+/*     $NetBSD: intr.c,v 1.33 2021/03/23 08:07:23 skrll Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -29,7 +29,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.32 2021/03/22 01:36:10 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.33 2021/03/23 08:07:23 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_interrupt.h"
@@ -619,7 +619,8 @@
        struct cpu_info *ci = curcpu();
        int ocpl;
 
-       if (ncpl == ci->ci_cpl) return ncpl;
+       if (ncpl == ci->ci_cpl)
+               return ncpl;
        REORDER_PROTECT();
        ocpl = ci->ci_cpl;
        KASSERT(ncpl < NIPL);



Home | Main Index | Thread Index | Old Index