diff options
author | Liu Xiang <liu.xiang6@zte.com.cn> | 2019-01-25 15:01:36 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-01-28 15:51:11 +0100 |
commit | 0b7a814c26444ec71c5a37a4a60ea180d8e8c6e8 (patch) | |
tree | dc9ce4a0acce936e66d366bf4cfbaac371571a71 /fs/ext2 | |
parent | ext2: Annotate implicit fall through in __ext2_truncate_blocks (diff) | |
download | linux-0b7a814c26444ec71c5a37a4a60ea180d8e8c6e8.tar.xz linux-0b7a814c26444ec71c5a37a4a60ea180d8e8c6e8.zip |
ext2: Remove redundant check for finding no group
When best_desc keeps NULL, best_group keeps -1, too. So we can
return best_group directly.
Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/ialloc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index 5c3d7b7e4975..a0c5ea91fcd4 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c @@ -222,8 +222,6 @@ static int find_group_dir(struct super_block *sb, struct inode *parent) best_desc = desc; } } - if (!best_desc) - return -1; return best_group; } |