Skip to content

Commit e7e64a1

Browse files
MiaoheLinhtejun
authored andcommitted
cgroup: clean up if condition in cgroup_pidlist_start()
There's no need to use '<=' when knowing 'l->list[mid] != pid' already. No functional change intended. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 7f828ea commit e7e64a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/cgroup/cgroup-v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ static void *cgroup_pidlist_start(struct seq_file *s, loff_t *pos)
431431
if (l->list[mid] == pid) {
432432
index = mid;
433433
break;
434-
} else if (l->list[mid] <= pid)
434+
} else if (l->list[mid] < pid)
435435
index = mid + 1;
436436
else
437437
end = mid;

0 commit comments

Comments
 (0)