Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1622839
| Path | csiph.com!1.us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Viresh Kumar <viresh.kumar@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | [PATCH V2 3/3] sched: cpupri: don't re-initialize struct cpupri |
| Date | Thu, 13 Apr 2017 11:20:02 +0200 |
| Message-ID | <tvJ50-Rx-11@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=QQ9vviAMjqRqZGppcOjP73i+MTrvTMUDrniSAnxXmQU=; b=RCU8POjrxzReEiWHIt4GxNk//RlaWk03mlX9eQWy7Wo34MIiwqsp5sA8jUojby19wZ rQanceAuG6rBPco9o2y34Vx9o5jxOaDVE9gJzAoi0A1O3NPANVjj0uxIUxLt9Xjj04eo UaQSzmSw3JVTTjk/yQrVUNAL74ZW0eGmySNBc= |
| 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=QQ9vviAMjqRqZGppcOjP73i+MTrvTMUDrniSAnxXmQU=; b=PZGa0SVAvAUE3OvTu+nRrAc/yszuY/vrFmoGG1aysML7XQKGXdyohoooM10JJkQqUs X0mRfQzM0vclkV8UD+hWaMEI0gZlYvmGbx9XZDgCogT14ymUtAb8V1GsRBJYxkhdn3D0 1/oYWCXmC5Qy1WRL5dPH5RW7Rn6JYXksHP/GpoDQlf0kkSXNzBNIbtRWngEo5ZpzYtPO TvEpsdA7f2HZBIjYNaa/YeZWNTwEvRljkv8aPK7W17wh87xl/+lMqcl3zQl60EnItITT 5IKrVcGibQsTiep5BKj0mk8BYt9NA6tgEfvmV4bo9aHWJNpLMK2cSDSJa1ugKyFZwt48 Y90g== |
| X-Gm-Message-State | AN3rC/67puB2W0N5FL+pxLgGQuMpQZxLDFIsGrXDVPFdGaMYoey+zLm0 HGzxn1pqyHtRplvW |
| X-Received | by 10.99.115.6 with SMTP id o6mr2250326pgc.216.1492075018944; Thu, 13 Apr 2017 02:16:58 -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 | 23 |
| 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:50 +0530 |
| X-Original-Message-ID | <8a71d48c5a077500b6ddc1a41484c0ac8d3aad94.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:1622839 |
Show key headers only | View raw
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH V2 3/3] sched: cpupri: don't re-initialize struct cpupri Viresh Kumar <viresh.kumar@linaro.org> - 2017-04-13 11:20 +0200
csiph-web