Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1622839 > unrolled thread

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

Started byViresh Kumar <viresh.kumar@linaro.org>
First post2017-04-13 11:20 +0200
Last post2017-04-13 11:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH V2 3/3] sched: cpupri: don't re-initialize struct cpupri Viresh Kumar <viresh.kumar@linaro.org> - 2017-04-13 11:20 +0200

#1622839 — [PATCH V2 3/3] sched: cpupri: don't re-initialize struct cpupri

FromViresh Kumar <viresh.kumar@linaro.org>
Date2017-04-13 11:20 +0200
Subject[PATCH V2 3/3] sched: cpupri: don't re-initialize struct cpupri
Message-ID<tvJ50-Rx-11@gated-at.bofh.it>
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(-)

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];
 
-- 
2.12.0.432.g71c3a4f4ba37

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web