From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752862AbaEURQN (ORCPT ); Wed, 21 May 2014 13:16:13 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:42404 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752772AbaEURPy (ORCPT ); Wed, 21 May 2014 13:15:54 -0400 Message-ID: <537CDF46.3000007@gmail.com> Date: Wed, 21 May 2014 10:15:50 -0700 From: Dirk Brandewie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Stratos Karafotis , "Rafael J. Wysocki" , Viresh Kumar , Dirk Brandewie CC: dirk.brandewie@gmail.com, "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org >> LKML" Subject: Re: [PATCH] cpufreq: intel_pstate: Remove unused member name of cpudata References: <537B9B0B.1020404@semaphore.gr> In-Reply-To: <537B9B0B.1020404@semaphore.gr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/20/2014 11:12 AM, Stratos Karafotis wrote: > Although, a value is assigned to member name of struct cpudata, > it is never used. > > We can safely remove it. > > Signed-off-by: Stratos Karafotis Acked-by: Dirk Brandewie > --- > drivers/cpufreq/intel_pstate.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c > index 24a534a..a6d5afa 100644 > --- a/drivers/cpufreq/intel_pstate.c > +++ b/drivers/cpufreq/intel_pstate.c > @@ -88,8 +88,6 @@ struct _pid { > struct cpudata { > int cpu; > > - char name[64]; > - > struct timer_list timer; > > struct pstate_data pstate; > @@ -544,8 +542,6 @@ static inline void intel_pstate_pstate_decrease(struct cpudata *cpu, int steps) > > static void intel_pstate_get_cpu_pstates(struct cpudata *cpu) > { > - sprintf(cpu->name, "Intel 2nd generation core"); > - > cpu->pstate.min_pstate = pstate_funcs.get_min(); > cpu->pstate.max_pstate = pstate_funcs.get_max(); > cpu->pstate.turbo_pstate = pstate_funcs.get_turbo(); >