lkml.org 
[lkml]   [2019]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] ext4: remove unreachable statement inside __es_insert_extent()
__es_insert_extent() never returns -EINVAL after BUG is executed.
So remove unreachable code.
---
fs/ext4/extents_status.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c
index a959adc..7f97360 100644
--- a/fs/ext4/extents_status.c
+++ b/fs/ext4/extents_status.c
@@ -781,7 +781,6 @@ static int __es_insert_extent(struct inode *inode, struct extent_status *newes)
p = &(*p)->rb_right;
} else {
BUG();
- return -EINVAL;
}
}

--
2.6.2
\
 
 \ /
  Last update: 2019-08-22 08:38    [W:0.060 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site