diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 8597110f50ef..3c288d4b19d2 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -2949,10 +2949,6 @@ again: } else { path = kcalloc(depth + 1, sizeof(struct ext4_ext_path), GFP_NOFS | __GFP_NOFAIL); - if (path == NULL) { - ext4_journal_stop(handle); - return -ENOMEM; - } path[0].p_maxdepth = path[0].p_depth = depth; path[0].p_hdr = ext_inode_hdr(inode); i = 0;