Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4807726ybv; Mon, 17 Feb 2020 06:22:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzkGgFlKoIH1dQMFcwAxgzgR2YuS3yYxYcabkIdqp3fnqstdpgKvw58kGkk5xlUrog9lCLN X-Received: by 2002:a05:6830:12c3:: with SMTP id a3mr12705042otq.341.1581949332037; Mon, 17 Feb 2020 06:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581949332; cv=none; d=google.com; s=arc-20160816; b=PFUHT8hQstjnexHvM2MRFAenQG6d05YEz2JugvV6yJCeebKv7IzIYQeK6XD0uyoy+1 WrJTNRrJ2t9McXpZeCXPY5WmCM8y8MEJ6W+nCcT9M7Fi3/qddbXIvgXGBD2ECC23/62U RwmrcBQIf26x7BWmxdjBLAt0hG0UQPZTr7yVkudzZtSAQGuZ2QzKZ4Y0FagNsNnEcCy6 64YsMItVw7CM6pZZGWy0c4gixkkciCJt3r/8SVuFc9FTbQtIKXIbem5HqL/dHzafuGH6 YClHRp8F1hGPg5xfKx9vtVil/s8EZw2ycCrpP9x/MSJQHaPDyggwfKoQAF0P3LPRdb+f sqvQ== 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:references :in-reply-to:date:cc:to:from:subject:message-id; bh=j3aYC22/YCLwShGNUjvcPYb4aYeELBztb3VP8uXZG3E=; b=lYYTgxjpbDoJjUs7G+UHNKlGStXoWah2Ty2qNQOBvK6v1YEyz5pbmHTtuCj6Dwm3e/ 7PFqXlOncO9bLzBDv1T9RgH5YewzKq8rXpTgZTUxsY4iCXXtcb4IRqNYMgkh61s0i7et pz51HKLuyPIYhgzm8YrAKTR71JNvwgKF2p5Ymh6cPgw23NpDgJxkZtfzw1hkz03X8fak dMX30zU1RoZJAZaXnNo/F7tPNUwpufeYGApRPbeRxoeTCnQO9EEbNG/JBG5wxR+oKRBr bsnIrLGl6C7ZCxwDN1d88E4oKjT5qRszCOcw55wmJMF4rXikQ0x6OlEn0VFyK3GwGIcr iCmQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si244498otp.108.2020.02.17.06.21.59; Mon, 17 Feb 2020 06:22:12 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728351AbgBQOQL (ORCPT + 99 others); Mon, 17 Feb 2020 09:16:11 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:6012 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbgBQOQL (ORCPT ); Mon, 17 Feb 2020 09:16:11 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01HEFRwV129122; Mon, 17 Feb 2020 09:15:45 -0500 Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y6buma029-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Feb 2020 09:15:44 -0500 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01HEA8n8003987; Mon, 17 Feb 2020 14:15:43 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma04wdc.us.ibm.com with ESMTP id 2y689627sv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Feb 2020 14:15:43 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01HEFgRi56623462 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Feb 2020 14:15:42 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 400F9BE054; Mon, 17 Feb 2020 14:15:42 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5A59FBE051; Mon, 17 Feb 2020 14:15:40 +0000 (GMT) Received: from leobras.br.ibm.com (unknown [9.18.235.152]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 17 Feb 2020 14:15:40 +0000 (GMT) Message-ID: <4177ac465032c043fc2bd2d257cfed1f9b32130f.camel@linux.ibm.com> Subject: Re: [PATCH 1/1] powerpc/cputable: Remove unnecessary copy of cpu_spec->oprofile_type From: Leonardo Bras To: Michael Neuling , 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 11:15:39 -0300 In-Reply-To: References: <20200215053637.280880-1-leonardo@linux.ibm.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-miUKIdMazE7d2FNrQGQu" User-Agent: Evolution 3.34.3 (3.34.3-1.fc31) MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-17_08:2020-02-17,2020-02-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 clxscore=1015 phishscore=0 mlxscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002170118 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-miUKIdMazE7d2FNrQGQu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2020-02-17 at 09:33 +1100, Michael Neuling wrote: > 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 do= ing > > 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 >=20 > LGTM >=20 > Reviewed-by: Michael Neuling >=20 Thanks! > > --- > > arch/powerpc/kernel/cputable.c | 1 - > > 1 file changed, 1 deletion(-) > >=20 > > diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputa= ble.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(un= signed > > 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 --=-miUKIdMazE7d2FNrQGQu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEMdeUgIzgjf6YmUyOlQYWtz9SttQFAl5KoAsACgkQlQYWtz9S ttSMkBAAloSDxI0JohdkvgvExJbJjNZFsMlB+OpXFavgD0axzhXdgPJGVuJCkS4o ZdEahayhfkTsHyHEj/JosZGo5FcLlAW7yPtJKWA+HQhqezM+LrvFr0IFqPdV6SjP RPfta0nf1OOk4KA7bik2fBAFbLZUJ2k2ujxLgFFeIuDinxIa82K661DJ3Kr8MpSc 39CQeRe/rcAIb+x+vpHa7KkL/jB/Nh7DZ5IeTvOnCE0oKoZq/cETSqmEgq3OBiHI tC0+HgYRr4T4FCTnUktgSp7oomvMy8SB/8rcypxkkrxucN1522mL5vDhcDxa25f+ QxsIK95jjYVrJrVsRUdXccIfush9eSUMtZobyllSGO9AqMZ/8b3HxubyS9gT7Ag8 yGxBM8H8mD0G4ITxv+ylP9I1I3YuNPkT93JD+7nU6OPvGXmD0xnN0x+cgK/1x5SD 0UOwGnbJ4yAeQBIu+1uHT795psAUF0j2t7EN2H+haIWJfAXu4l188ALU9jvtqoOC KoXcSi0YzG7mEfB5IyQyAVKI/7r3jbrbfl4rDSaf2IhOvZT7ueR/sA3G2u5u3Bw1 8QoP6MjRb6d7R+wbFUvMeW+Rk2IGTfdbEJr7vABlIwUMR0yLGc2LeGIyJ+9+7P+A BsomQjSu6cPEQsQ2FwWKdBeKbnyQWZRpcjCj2xPhut/XJwS9z1s= =7iTa -----END PGP SIGNATURE----- --=-miUKIdMazE7d2FNrQGQu--