Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1622846
| From | Viresh Kumar <viresh.kumar@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH V2 2/3] sched: cpudeadline: don't re-initialize struct cpudl |
| Date | 2017-04-13 11:20 +0200 |
| Message-ID | <tvJ51-Rx-27@gated-at.bofh.it> (permalink) |
| References | <tvJ50-Rx-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The struct cpudl passed to cpudl_init() is already initialized to zero.
Don't do that again.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
kernel/sched/cpudeadline.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c
index fba235c7d026..bdf448b6556f 100644
--- a/kernel/sched/cpudeadline.c
+++ b/kernel/sched/cpudeadline.c
@@ -246,7 +246,6 @@ int cpudl_init(struct cpudl *cp)
{
int i;
- memset(cp, 0, sizeof(*cp));
raw_spin_lock_init(&cp->lock);
cp->size = 0;
--
2.12.0.432.g71c3a4f4ba37
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V2 0/3] sched: Minor cleanups Viresh Kumar <viresh.kumar@linaro.org> - 2017-04-13 11:20 +0200 [PATCH V2 1/3] sched: topology: drop memset() from init_rootdomain() Viresh Kumar <viresh.kumar@linaro.org> - 2017-04-13 11:20 +0200 [PATCH V2 2/3] sched: cpudeadline: don't re-initialize struct cpudl Viresh Kumar <viresh.kumar@linaro.org> - 2017-04-13 11:20 +0200
csiph-web