diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2023-08-07 13:58:31 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-08-07 20:30:06 +0200 |
commit | e7e64a1bff12f212be12b048723718c2152c4489 (patch) | |
tree | 04192bcfe197e884301db45b2cd5adf7b1773f04 | |
parent | cgroup: fix obsolete function name in cgroup_destroy_locked() (diff) | |
download | linux-e7e64a1bff12f212be12b048723718c2152c4489.tar.xz linux-e7e64a1bff12f212be12b048723718c2152c4489.zip |
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>
-rw-r--r-- | kernel/cgroup/cgroup-v1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c index 83044312bc41..c487ffef6652 100644 --- a/kernel/cgroup/cgroup-v1.c +++ b/kernel/cgroup/cgroup-v1.c @@ -431,7 +431,7 @@ static void *cgroup_pidlist_start(struct seq_file *s, loff_t *pos) if (l->list[mid] == pid) { index = mid; break; - } else if (l->list[mid] <= pid) + } else if (l->list[mid] < pid) index = mid + 1; else end = mid; |