Source-Changes-HG archive

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

[src/trunk]: src/sbin/scan_ffs Remove an extra conditional while searching fo...



details:   https://anonhg.NetBSD.org/src/rev/877654c5ee6a
branches:  trunk
changeset: 583979:877654c5ee6a
user:      xtraeme <xtraeme%NetBSD.org@localhost>
date:      Fri Sep 02 17:48:40 2005 +0000

description:
Remove an extra conditional while searching for LFS superblocks,
it's not needed.

diffstat:

 sbin/scan_ffs/scan_ffs.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 8f727eae3911 -r 877654c5ee6a sbin/scan_ffs/scan_ffs.c
--- a/sbin/scan_ffs/scan_ffs.c  Fri Sep 02 17:39:23 2005 +0000
+++ b/sbin/scan_ffs/scan_ffs.c  Fri Sep 02 17:48:40 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scan_ffs.c,v 1.8 2005/08/09 12:59:29 he Exp $ */
+/* $NetBSD: scan_ffs.c,v 1.9 2005/09/02 17:48:40 xtraeme Exp $ */
 
 /*
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
  
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: scan_ffs.c,v 1.8 2005/08/09 12:59:29 he Exp $");
+__RCSID("$NetBSD: scan_ffs.c,v 1.9 2005/09/02 17:48:40 xtraeme Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -407,8 +407,6 @@
                                break;
                        case FSTYPE_NONE:
                                /* maybe LFS? */
-                               if (sbinfo.lfs->lfs_magic != LFS_MAGIC)
-                                       break;
                                if (sbinfo.lfs->lfs_magic == LFS_MAGIC)
                                        lfs_scan(n);
                                break;



Home | Main Index | Thread Index | Old Index