btrfs-progs: image: drop useless bug_on
authorDavid Sterba <dsterba@suse.com>
Mon, 3 Oct 2016 13:13:50 +0000 (15:13 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 5 Oct 2016 10:39:01 +0000 (12:39 +0200)
The callers touch 'target', no point checking it inside restore_metadump
again.

Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-image.c

index 46d3196..8781b9e 100644 (file)
@@ -2531,7 +2531,6 @@ static int restore_metadump(const char *input, FILE *out, int old_restore,
 
        /* NOTE: open with write mode */
        if (fixup_offset) {
-               BUG_ON(!target);
                info = open_ctree_fs_info(target, 0, 0, 0,
                                          OPEN_CTREE_WRITES |
                                          OPEN_CTREE_RESTORE |