Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Make sure buf_inorder() returns a value under all c...



details:   https://anonhg.NetBSD.org/src/rev/88c5fe6cf527
branches:  trunk
changeset: 556014:88c5fe6cf527
user:      he <he%NetBSD.org@localhost>
date:      Sat Dec 06 01:21:23 2003 +0000

description:
Make sure buf_inorder() returns a value under all conditions.

diffstat:

 sys/kern/subr_disk.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 85549dfa3cd0 -r 88c5fe6cf527 sys/kern/subr_disk.c
--- a/sys/kern/subr_disk.c      Fri Dec 05 23:56:20 2003 +0000
+++ b/sys/kern/subr_disk.c      Sat Dec 06 01:21:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_disk.c,v 1.55 2003/12/05 10:16:16 yamt Exp $      */
+/*     $NetBSD: subr_disk.c,v 1.56 2003/12/06 01:21:23 he Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1999, 2000 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.55 2003/12/05 10:16:16 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.56 2003/12/06 01:21:23 he Exp $");
 
 #include "opt_compat_netbsd.h"
 
@@ -499,8 +499,7 @@
        if (sortby == BUFQ_SORT_CYLINDER && bp->b_cylinder < bq->b_cylinder)
                return 1;
 
-       if (bp->b_rawblkno < bq->b_rawblkno)
-               return 1;
+       return (bp->b_rawblkno < bq->b_rawblkno);
 }
 
 



Home | Main Index | Thread Index | Old Index