Skip to content

Commit

Permalink
sched: remove stale comment from sched_group_set_shares()
Browse files Browse the repository at this point in the history
remove stale comment from sched_group_set_shares().

Function never returns -EINVAL.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Oct 15, 2007
1 parent d5036e8 commit 1666703
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -6822,8 +6822,6 @@ int sched_group_set_shares(struct task_group *tg, unsigned long shares)
if (tg->shares == shares)
goto done;

/* return -EINVAL if the new value is not sane */

tg->shares = shares;
for_each_possible_cpu(i)
set_se_shares(tg->se[i], shares);
Expand Down

0 comments on commit 1666703

Please sign in to comment.