projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
260db43
)
btrfs: remove spurious BUG_ON in btrfs_get_extent
author
Nikolay Borisov
<nborisov@suse.com>
Mon, 3 Aug 2020 09:43:18 +0000
(12:43 +0300)
committer
David Sterba
<dsterba@suse.com>
Wed, 7 Oct 2020 10:06:50 +0000
(12:06 +0200)
That BUG_ON cannot ever trigger because as the comment there states -
'err' is always set. Simply remove it as it brings no value.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index 9570458aa8471dd4d442de81e2e3771f2823921e..df08ace5d9148e651461f13f45f7349e428799c1 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-6748,7
+6748,6
@@
out:
free_extent_map(em);
return ERR_PTR(err);
}
- BUG_ON(!em); /* Error is always set */
return em;
}