mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-09 12:18:04 +00:00
btrfs-progs: image: drop useless bug_on
The callers touch 'target', no point checking it inside restore_metadump again. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
9287b8630c
commit
db64e0a636
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user