Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4126423ybv; Sun, 16 Feb 2020 14:36:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxqCfvOlGVxJQsoClScN8XhKBX71XIHHzHkqS21ORgsMkYelx5TU89tkWlqacc1JGuMCVag X-Received: by 2002:a9d:5d09:: with SMTP id b9mr9981955oti.207.1581892563233; Sun, 16 Feb 2020 14:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581892563; cv=none; d=google.com; s=arc-20160816; b=k2alCwqiV/qoh+3b4HdiIep+1TfG6+m2z3dS9EK9600d8crMwPl9LCzuFON5dEgg3A 09q94FhR/+sJhAVzPQl7SCYjL3d2kRqiura7vLcvxilYodWlgYZpvzJVhjoZmrzFBtyL EW8yP2cC0iwbhL/gQEfrw7lDl2sCj0ZaXR65cmIfq3W+8ihmfjp2wvTVKv/sf3+9I3Nx M/uTSoR45JbAV+KIw5jAUum4afMfC3OBlKL9hzH9Q3iAz41JInS+RWT+6bTozamTUw9Q 3Ek490es+NPusxjDMB+EGQ3QroMWwV3cxP+y83MQtpkB8br9+hKjc3pZzH4SLZ9c9QE9 E8BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=zhVY8wdNHcnpzZOcOY87dSU7vRzUD7GXg96ZdG3yTio=; b=gYQMsQco4Tn67S7vXGjFLv7ad+PFVkV9Itfj8SVpCFSEK7K/DDck+gS3tmB+2qYjlL Bmuu9adEYUCIrlg6XqsDunuB1T8Vq+lOedSKo/bUe2oXdyc2WkWEdwQzUgiEPDrozkv4 KN9eoMh08nIkr4kLEqbeicBniRHYntEQaNxvcfLt2rQrmiTv8BLb+E09U5JCC7T8JFEN qX5ElwsrCVr8ub5WeBk9A0PWVGfl+UNKWSu1Kl4t1e5exSVz0cJa+X3c4YgymErUoXE+ UwBO8oWnyVzAmWB/FL8QsL52K50F0JiqzumRrTg/GwkFBG/NeXllj30iFW9VP9/0wmGa 5msw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@neuling.org header.s=201811 header.b=izLMkKNK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si5395677oti.126.2020.02.16.14.35.49; Sun, 16 Feb 2020 14:36:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@neuling.org header.s=201811 header.b=izLMkKNK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbgBPWdx (ORCPT + 99 others); Sun, 16 Feb 2020 17:33:53 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:57009 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbgBPWdx (ORCPT ); Sun, 16 Feb 2020 17:33:53 -0500 Received: from neuling.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 48LMNG3cXPz9sPk; Mon, 17 Feb 2020 09:33:50 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=neuling.org; s=201811; t=1581892431; bh=IzVd3zz9l6kPQTSe8Nj+Ga0PypI0I2VtiI7TPnVOQrY=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=izLMkKNKro+4UaU4NyZyvFFwQxyAvV8WHby0/+sU16FohAkhCP8xpodCbETwQD4H+ Kbf5T+Sltm6K5SG7jU03OfXdEcvMoYnWbqk3qQtKTMEaEIjqlOvu/z7+ULva/ILRm0 A2nOGCJidPEC6Unmb1ho0W5lQMI5ZScWTAC4Ce/8n4M2gMdGfbvJuGK6WNknf1hkXg IcjRwX4qaH/u0dwUeDgY6sn+ejB/zd+Xce1n7lp4BnpsCaanSUe02Ewd/v2RTSnFIM VMSPrl7+RcB5nGZadKVKhkY9QebfoBRaxC0ynLtIjfyn1SKKbsfkcj8eo9AdIdNQAT nd1nCAkuHeJQA== Received: by neuling.org (Postfix, from userid 1000) id F1D392C01ED; Mon, 17 Feb 2020 09:33:49 +1100 (AEDT) Message-ID: Subject: Re: [PATCH 1/1] powerpc/cputable: Remove unnecessary copy of cpu_spec->oprofile_type From: Michael Neuling To: Leonardo Bras , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Christophe Leroy , Greg Kroah-Hartman , Thomas Gleixner , desnesn@linux.ibm.com Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Mon, 17 Feb 2020 09:33:49 +1100 In-Reply-To: <20200215053637.280880-1-leonardo@linux.ibm.com> References: <20200215053637.280880-1-leonardo@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.34.3 (3.34.3-1.fc31) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2020-02-15 at 02:36 -0300, Leonardo Bras wrote: > Before checking for cpu_type =3D=3D NULL, this same copy happens, so doin= g > it here will just write the same value to the t->oprofile_type > again. >=20 > Remove the repeated copy, as it is unnecessary. >=20 > Signed-off-by: Leonardo Bras LGTM Reviewed-by: Michael Neuling > --- > arch/powerpc/kernel/cputable.c | 1 - > 1 file changed, 1 deletion(-) >=20 > diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputabl= e.c > index e745abc5457a..5a87ec96582f 100644 > --- a/arch/powerpc/kernel/cputable.c > +++ b/arch/powerpc/kernel/cputable.c > @@ -2197,7 +2197,6 @@ static struct cpu_spec * __init setup_cpu_spec(unsi= gned > long offset, > */ > if (old.oprofile_cpu_type !=3D NULL) { > t->oprofile_cpu_type =3D old.oprofile_cpu_type; > - t->oprofile_type =3D old.oprofile_type; > } > } > =20