From: Miaohe Lin Date: Mon, 7 Aug 2023 11:58:31 +0000 (+0800) Subject: cgroup: clean up if condition in cgroup_pidlist_start() X-Git-Tag: v6.6-rc1~93^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7e64a1bff12f212be12b048723718c2152c4489;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c index 83044312bc413..c487ffef6652d 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;