ext2: remove check on uninitialized value

This commit is contained in:
Michael Shaw 2023-10-21 23:18:47 -04:00
commit 5e87ade563

View file

@ -291,10 +291,6 @@ static long ext2_inode_alloc_block(struct ext2fs *fs, struct ext2_inode *inode,
{
/* allocate inode block and handle indirect if necessary */
long block;
if (block < 0)
return block;
size_t num_blocks = (inode->blocks * fs->bdev->block_size) / fs->block_size;
if (num_blocks < N_DIRECT) {