diff options
author | Hao Jia <jiahao.os@bytedance.com> | 2022-08-06 14:05:09 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2022-08-16 00:35:25 +0200 |
commit | 76b079ef4cc954fc2c2e0333a01855b0b2b6bdee (patch) | |
tree | e1d73dc30b90c3f70c8c47e4a40df4ee620f811c /kernel/sched | |
parent | sched/psi: Zero the memory of struct psi_group (diff) | |
download | linux-76b079ef4cc954fc2c2e0333a01855b0b2b6bdee.tar.xz linux-76b079ef4cc954fc2c2e0333a01855b0b2b6bdee.zip |
sched/psi: Remove unused parameter nbytes of psi_trigger_create()
psi_trigger_create()'s 'nbytes' parameter is not used, so we can remove it.
Signed-off-by: Hao Jia <jiahao.os@bytedance.com>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/psi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index 5ee615a59fe1..ecb4b4ff4ce0 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -1087,7 +1087,7 @@ int psi_show(struct seq_file *m, struct psi_group *group, enum psi_res res) } struct psi_trigger *psi_trigger_create(struct psi_group *group, - char *buf, size_t nbytes, enum psi_res res) + char *buf, enum psi_res res) { struct psi_trigger *t; enum psi_states state; @@ -1316,7 +1316,7 @@ static ssize_t psi_write(struct file *file, const char __user *user_buf, return -EBUSY; } - new = psi_trigger_create(&psi_system, buf, nbytes, res); + new = psi_trigger_create(&psi_system, buf, res); if (IS_ERR(new)) { mutex_unlock(&seq->lock); return PTR_ERR(new); |