projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f828ea
)
cgroup: clean up if condition in cgroup_pidlist_start()
author
Miaohe Lin
<linmiaohe@huawei.com>
Mon, 7 Aug 2023 11:58:31 +0000
(19:58 +0800)
committer
Tejun Heo
<tj@kernel.org>
Mon, 7 Aug 2023 18:30:06 +0000
(08:30 -1000)
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>
kernel/cgroup/cgroup-v1.c
patch
|
blob
|
history
diff --git
a/kernel/cgroup/cgroup-v1.c
b/kernel/cgroup/cgroup-v1.c
index
8304431
..
c487ffe
100644
(file)
--- 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;