projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f068ebd
)
ext2: Remove redundant check for finding no group
author
Liu Xiang
<liu.xiang6@zte.com.cn>
Fri, 25 Jan 2019 14:01:36 +0000
(22:01 +0800)
committer
Jan Kara
<jack@suse.cz>
Mon, 28 Jan 2019 14:51:11 +0000
(15:51 +0100)
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>
fs/ext2/ialloc.c
patch
|
blob
|
history
diff --git
a/fs/ext2/ialloc.c
b/fs/ext2/ialloc.c
index
5c3d7b7
..
a0c5ea9
100644
(file)
--- 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;
}