Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9f46bb1 authored by Yuan Zhong's avatar Yuan Zhong Committed by Jaegeuk Kim
Browse files

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: default avatarYuan Zhong <yuan.mark.zhong@samsung.com>
Reviewed-by: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent b1f73b79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ struct f2fs_dir_entry *find_target_dentry(struct qstr *name, int *max_slots,
			!memcmp(d->filename[bit_pos], name->name, name->len))
			goto found;

		if (max_slots && *max_slots >= 0 && max_len > *max_slots) {
		if (max_slots && max_len > *max_slots) {
			*max_slots = max_len;
			max_len = 0;
		}