[V2,3/3] sched: cpupri: don't re-initialize struct cpupri

Message ID 8a71d48c5a077500b6ddc1a41484c0ac8d3aad94.1492065513.git.viresh.kumar@linaro.org
State Accepted
Commit 1c2a4861dbfca373fea1ff2cf9e9793933d024ce
Headers show
Series
  • sched: Minor cleanups
Related show

Commit Message

Viresh Kumar April 13, 2017, 9:15 a.m.
The struct cpupri passed to cpupri_init() is already initialized to
zero. Don't do that again.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

---
 kernel/sched/cpupri.c | 2 --
 1 file changed, 2 deletions(-)

-- 
2.12.0.432.g71c3a4f4ba37

Patch

diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c
index 981fcd7dc394..2511aba36b89 100644
--- a/kernel/sched/cpupri.c
+++ b/kernel/sched/cpupri.c
@@ -209,8 +209,6 @@  int cpupri_init(struct cpupri *cp)
 {
 	int i;
 
-	memset(cp, 0, sizeof(*cp));
-
 	for (i = 0; i < CPUPRI_NR_PRIORITIES; i++) {
 		struct cpupri_vec *vec = &cp->pri_to_cpu[i];