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


Groups > linux.kernel > #1622846

[PATCH V2 2/3] sched: cpudeadline: don't re-initialize struct cpudl

Path csiph.com!1.us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!feed.usenet.farm!feeder2.usenet.farm!newsfeed.datemas.de!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject [PATCH V2 2/3] sched: cpudeadline: don't re-initialize struct cpudl
Date Thu, 13 Apr 2017 11:20:03 +0200
Message-ID <tvJ51-Rx-27@gated-at.bofh.it> (permalink)
References <tvJ50-Rx-9@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=8yqszUftzrjwuq8eqAiVMdudHu/BOHTm2s/9Bz0QRiw=; b=iu0VxAZhCkpL0sGNvWObGhnw8NlNtGRXeSDz/sIlOuhVFlEOHWjBfkGhaUN8+K7GjR 1DVGXLLnBdxwFxr+czXweyA7KhyDBSsAdrA7AoOkYb3WoT5A9XVMeS68R0dUMlRz04iE KY9Mh1gzNeLpKHkyPLAhQ6RrKKGjk+zq9Ec6E=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=8yqszUftzrjwuq8eqAiVMdudHu/BOHTm2s/9Bz0QRiw=; b=XSaCjweZEGAKIYc6M3TH3GDPkOzj3c2POJ/mf4s8rpEVybt+kuEHAPoxcih8p8rSdT 9gWavu/bZfLV7PIhwQJP3SefZ14v3AWNoi+D9pgcP3JvwmCs8yEmrBuLuMdcQ7jbN+OZ TaN4ozLqim1mAhdg0EALp4y58bVvkNKLQ7AoWUuhLsPSEaXp4ybnqYFBiPxS7bg1UuBo D70BBy4XeFq9H2uwTeKrxfHy96I7JjNpZmMcrXNxHF4hI3roG5m11qetDlwpc7ynpAML skjULy3VbIQPvfxMdnIybb1CzH/bOP9q0YuTZpsljUrYeg6KZMt82D/Jr2RTX2D443ig lkFA==
X-Gm-Message-State AN3rC/6oZxI+WglkOVVNs4hAnoOB2kImYuayDXCJsL0UfcI4l+2uO/Pb W0r5zfLBZMlBCGwW
X-Received by 10.84.224.198 with SMTP id k6mr2870439pln.15.1492075015765; Thu, 13 Apr 2017 02:16:55 -0700 (PDT)
X-Mailer git-send-email 2.12.0.432.g71c3a4f4ba37
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 22
Organization linux.* mail to news gateway
X-Original-Cc linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, Viresh Kumar <viresh.kumar@linaro.org>
X-Original-Date Thu, 13 Apr 2017 14:45:49 +0530
X-Original-Message-ID <bd4c229806bc96694b15546207afcc221387d2f5.1492065513.git.viresh.kumar@linaro.org>
X-Original-References <cover.1492065513.git.viresh.kumar@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1622846

Show key headers only | View raw


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 | NextPrevious in thread | Find similar | Unroll thread


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