Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Don't compare bp->b_dev against RAW_PART; use the `p...



details:   https://anonhg.NetBSD.org/src/rev/97efcb96576e
branches:  trunk
changeset: 514590:97efcb96576e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Sep 06 00:47:56 2001 +0000

description:
Don't compare bp->b_dev against RAW_PART; use the `part' local variable
instead.

diffstat:

 sys/dev/ld.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3abbd0f27e18 -r 97efcb96576e sys/dev/ld.c
--- a/sys/dev/ld.c      Thu Sep 06 00:21:11 2001 +0000
+++ b/sys/dev/ld.c      Thu Sep 06 00:47:56 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ld.c,v 1.10 2001/07/24 21:55:35 ad Exp $       */
+/*     $NetBSD: ld.c,v 1.11 2001/09/06 00:47:56 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -504,7 +504,7 @@
        else
                bp->b_rawblkno = bp->b_blkno * (DEV_BSIZE / lp->d_secsize);
 
-       if (bp->b_dev != RAW_PART)
+       if (part != RAW_PART)
                bp->b_rawblkno += lp->d_partitions[part].p_offset;
 
        s = splbio();



Home | Main Index | Thread Index | Old Index