Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips - no need to check lsw_cpu_run != NULL be...



details:   https://anonhg.NetBSD.org/src/rev/ae9748820e81
branches:  trunk
changeset: 764227:ae9748820e81
user:      cliff <cliff%NetBSD.org@localhost>
date:      Thu Apr 14 05:54:24 2011 +0000

description:
- no need to check lsw_cpu_run != NULL before calling, nullop is default

diffstat:

 sys/arch/mips/mips/cpu_subr.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r b25c4a235783 -r ae9748820e81 sys/arch/mips/mips/cpu_subr.c
--- a/sys/arch/mips/mips/cpu_subr.c     Thu Apr 14 05:53:53 2011 +0000
+++ b/sys/arch/mips/mips/cpu_subr.c     Thu Apr 14 05:54:24 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.7 2011/04/14 05:08:51 cliff Exp $       */
+/*     $NetBSD: cpu_subr.c,v 1.8 2011/04/14 05:54:24 cliff Exp $       */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.7 2011/04/14 05:08:51 cliff Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.8 2011/04/14 05:54:24 cliff Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -936,8 +936,7 @@
         * Let this CPU do its own post-running initialization
         * (for things that have to be done on the local CPU).
         */
-       if (mips_locoresw.lsw_cpu_run != NULL)
-               (*mips_locoresw.lsw_cpu_run)(ci);
+       (*mips_locoresw.lsw_cpu_run)(ci);
 
        /*
         * Now turn on interrupts.



Home | Main Index | Thread Index | Old Index