diff options
author | Yuan Zhong <yuan.mark.zhong@samsung.com> | 2015-03-08 22:43:50 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-10 18:08:38 -0400 |
commit | d9f46bb1a84ee15f58c9c58ab91962b7dc6eb9a4 (patch) | |
tree | fc4dcb42f00673503e1417ceb35eae60a17a8024 | |
parent | b1f73b79d26ffd8966404c268e558d6fec448814 (diff) |
f2fs: remove unnecessary condition judgment
Remove the unnecessary condition judgment, because
'max_slots' has been initialized to '0' at the beginging
of the function, as following:
if (max_slots)
*max_slots = 0;
Signed-off-by: Yuan Zhong <yuan.mark.zhong@samsung.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fs/f2fs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index a28909d9aea8..473763f4ca5b 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c | |||
@@ -139,7 +139,7 @@ struct f2fs_dir_entry *find_target_dentry(struct qstr *name, int *max_slots, | |||
139 | !memcmp(d->filename[bit_pos], name->name, name->len)) | 139 | !memcmp(d->filename[bit_pos], name->name, name->len)) |
140 | goto found; | 140 | goto found; |
141 | 141 | ||
142 | if (max_slots && *max_slots >= 0 && max_len > *max_slots) { | 142 | if (max_slots && max_len > *max_slots) { |
143 | *max_slots = max_len; | 143 | *max_slots = max_len; |
144 | max_len = 0; | 144 | max_len = 0; |
145 | } | 145 | } |