Re: [PATCH] btrfs: Remove never-reached WARN_ON

2017-08-17 Thread David Sterba
On Thu, Aug 17, 2017 at 10:52:28AM +0300, Nikolay Borisov wrote: > We have a WARN_ON(!var) inside an if branch which is executed (among others) > only when var is true. > > Signed-off-by: Nikolay Borisov > --- > fs/btrfs/extent-tree.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/b

[PATCH] btrfs: Remove never-reached WARN_ON

2017-08-17 Thread Nikolay Borisov
We have a WARN_ON(!var) inside an if branch which is executed (among others) only when var is true. Signed-off-by: Nikolay Borisov --- fs/btrfs/extent-tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 21c78c48e15b..8552d550a048 100644