projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9287b86
)
btrfs-progs: image: drop useless bug_on
author
David Sterba
<dsterba@suse.com>
Mon, 3 Oct 2016 13:13:50 +0000
(15:13 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/btrfs-image.c
b/btrfs-image.c
index
46d3196
..
8781b9e
100644
(file)
--- a/
btrfs-image.c
+++ b/
btrfs-image.c
@@
-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 |