aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-11-25 16:23:48 -0500
committerTheodore Ts'o <tytso@mit.edu>2014-11-25 16:23:48 -0500
commit733ded2a803523f9e082282820821343679cadc6 (patch)
treec671bc70d6e39f246d39adc86e6ed529c3db0fba
parentc6d3d56dd0ef6c15fc007413c9d024021c178cf9 (diff)
ext4: remove never taken branch from ext4_ext_shift_path_extents()
path[depth].p_hdr can never be NULL for a path passed to us (and even if it could, EXT_LAST_EXTENT() would make something != NULL from it). So just remove the branch. Coverity-id: 1196498 Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--fs/ext4/extents.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index e2424bafd6fe..c3a1fa1398f5 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -5249,8 +5249,6 @@ ext4_ext_shift_path_extents(struct ext4_ext_path *path, ext4_lblk_t shift,
5249 return -EIO; 5249 return -EIO;
5250 5250
5251 ex_last = EXT_LAST_EXTENT(path[depth].p_hdr); 5251 ex_last = EXT_LAST_EXTENT(path[depth].p_hdr);
5252 if (!ex_last)
5253 return -EIO;
5254 5252
5255 err = ext4_access_path(handle, inode, path + depth); 5253 err = ext4_access_path(handle, inode, path + depth);
5256 if (err) 5254 if (err)