Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Remove two redundant conditionals.



details:   https://anonhg.NetBSD.org/src/rev/dc91f0055ec2
branches:  trunk
changeset: 570721:dc91f0055ec2
user:      peter <peter%NetBSD.org@localhost>
date:      Mon Oct 25 23:06:41 2004 +0000

description:
Remove two redundant conditionals.

diffstat:

 sys/kern/kern_lkm.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r d7a0b25bc66b -r dc91f0055ec2 sys/kern/kern_lkm.c
--- a/sys/kern/kern_lkm.c       Mon Oct 25 22:59:12 2004 +0000
+++ b/sys/kern/kern_lkm.c       Mon Oct 25 23:06:41 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lkm.c,v 1.76 2004/10/25 22:59:12 peter Exp $      */
+/*     $NetBSD: kern_lkm.c,v 1.77 2004/10/25 23:06:41 peter Exp $      */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lkm.c,v 1.76 2004/10/25 22:59:12 peter Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lkm.c,v 1.77 2004/10/25 23:06:41 peter Exp $");
 
 #include "opt_ddb.h"
 #include "opt_malloclog.h"
@@ -367,7 +367,7 @@
 
                resrvp->addr = curp->area;      /* ret kernel addr */
 
-               if (cmd == LMRESERV && resrvp->sym_size) {
+               if (resrvp->sym_size) {
                        curp->sym_size = resrvp->sym_size;
                        curp->sym_symsize = resrvp->sym_symsize;
                        curp->syms = (u_long) LKM_SPACE_ALLOC(curp->sym_size);
@@ -377,8 +377,7 @@
                        curp->sym_size = 0;
                        curp->syms = 0;
                        curp->sym_offset = 0;
-                       if (cmd == LMRESERV)
-                               resrvp->sym_addr = 0;
+                       resrvp->sym_addr = 0;
                }
 
 #ifdef DEBUG



Home | Main Index | Thread Index | Old Index