Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/fstyp fstyp: Remove redundant best_i check in HAMMER2



details:   https://anonhg.NetBSD.org/src/rev/2d7b3be324c9
branches:  trunk
changeset: 467156:2d7b3be324c9
user:      tkusumi <tkusumi%NetBSD.org@localhost>
date:      Wed Jan 15 15:32:05 2020 +0000

description:
fstyp: Remove redundant best_i check in HAMMER2

https://reviews.freebsd.org/D23159
taken-from: DragonFlyBSD originally from FreeBSD

diffstat:

 usr.sbin/fstyp/hammer2.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 8880ac29aae7 -r 2d7b3be324c9 usr.sbin/fstyp/hammer2.c
--- a/usr.sbin/fstyp/hammer2.c  Wed Jan 15 15:30:46 2020 +0000
+++ b/usr.sbin/fstyp/hammer2.c  Wed Jan 15 15:32:05 2020 +0000
@@ -1,4 +1,4 @@
-/*        $NetBSD: hammer2.c,v 1.3 2020/01/04 03:43:18 tkusumi Exp $      */
+/*        $NetBSD: hammer2.c,v 1.4 2020/01/15 15:32:05 tkusumi Exp $      */
 
 /*-
  * Copyright (c) 2017-2019 The DragonFly Project
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hammer2.c,v 1.3 2020/01/04 03:43:18 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hammer2.c,v 1.4 2020/01/15 15:32:05 tkusumi Exp $");
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -225,10 +225,6 @@
                        best = broot;
                }
        }
-       if (best_i == -1) {
-               warnx("failed to find best zone");
-               goto fail;
-       }
 
        bref = &vols[best_i]->voldata.sroot_blockset.blockref[0];
        if (bref->type != HAMMER2_BREF_TYPE_INODE) {



Home | Main Index | Thread Index | Old Index