Source-Changes-HG archive

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

[src/trunk]: src/sys/kern sysctl_kern_bufq_strategies:



details:   https://anonhg.NetBSD.org/src/rev/73874e486ffa
branches:  trunk
changeset: 585091:73874e486ffa
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Oct 16 08:30:37 2005 +0000

description:
sysctl_kern_bufq_strategies:
- don't assign size_t value to error number.
- remove an unnecessary assignment.

diffstat:

 sys/kern/subr_bufq.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 08bc71d682c2 -r 73874e486ffa sys/kern/subr_bufq.c
--- a/sys/kern/subr_bufq.c      Sun Oct 16 08:27:51 2005 +0000
+++ b/sys/kern/subr_bufq.c      Sun Oct 16 08:30:37 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_bufq.c,v 1.6 2005/10/16 08:27:51 yamt Exp $       */
+/*     $NetBSD: subr_bufq.c,v 1.7 2005/10/16 08:30:37 yamt Exp $       */
 /*     NetBSD: subr_disk.c,v 1.70 2005/08/20 12:00:01 yamt Exp $       */
 
 /*-
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_bufq.c,v 1.6 2005/10/16 08:27:51 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_bufq.c,v 1.7 2005/10/16 08:30:37 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -256,9 +256,9 @@
        int error, first;
 
        first = 1;
-       error = needed = 0;
+       error = 0;
+       needed = 0;
        left = *oldlenp;
-       strat = NULL;
 
        __link_set_foreach(bq_strat, bufq_strats) {
                strat = (*bq_strat)->bs_name;



Home | Main Index | Thread Index | Old Index