From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752569AbdHJMJ4 (ORCPT ); Thu, 10 Aug 2017 08:09:56 -0400 Received: from terminus.zytor.com ([65.50.211.136]:46093 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751485AbdHJMJy (ORCPT ); Thu, 10 Aug 2017 08:09:54 -0400 Date: Thu, 10 Aug 2017 05:06:22 -0700 From: tip-bot for Viresh Kumar Message-ID: Cc: hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, viresh.kumar@linaro.org, mingo@kernel.org, vincent.guittot@linaro.org, peterz@infradead.org Reply-To: vincent.guittot@linaro.org, mingo@kernel.org, peterz@infradead.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, viresh.kumar@linaro.org In-Reply-To: <8a71d48c5a077500b6ddc1a41484c0ac8d3aad94.1492065513.git.viresh.kumar@linaro.org> References: <8a71d48c5a077500b6ddc1a41484c0ac8d3aad94.1492065513.git.viresh.kumar@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/cpupri: Don't re-initialize 'struct cpupri' Git-Commit-ID: 1c2a4861dbfca373fea1ff2cf9e9793933d024ce X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 1c2a4861dbfca373fea1ff2cf9e9793933d024ce Gitweb: http://git.kernel.org/tip/1c2a4861dbfca373fea1ff2cf9e9793933d024ce Author: Viresh Kumar AuthorDate: Thu, 13 Apr 2017 14:45:50 +0530 Committer: Ingo Molnar CommitDate: Thu, 10 Aug 2017 12:18:14 +0200 sched/cpupri: Don't re-initialize 'struct cpupri' The 'struct cpupri' passed to cpupri_init() is already initialized to zero. Don't do that again. Signed-off-by: Viresh Kumar Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Vincent Guittot Cc: linaro-kernel@lists.linaro.org Link: http://lkml.kernel.org/r/8a71d48c5a077500b6ddc1a41484c0ac8d3aad94.1492065513.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar --- kernel/sched/cpupri.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c index 981fcd7..2511aba 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];