Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2542127ybv; Fri, 14 Feb 2020 21:37:49 -0800 (PST) X-Google-Smtp-Source: APXvYqwKwAGQpOmDkmzM5iskad299ZcV1Ig29zDVM1hilX+chhiSsiZfCojo1raBmq9dtv8/M+vU X-Received: by 2002:a9d:470a:: with SMTP id a10mr5050852otf.370.1581745069517; Fri, 14 Feb 2020 21:37:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581745069; cv=none; d=google.com; s=arc-20160816; b=XODsVvzV3yEuvxEcb0f2p0fceMzUu8pEOf/cjwAB6ImyBERdKR4lobEpHQiNU3/Nfy MZhaXwCqAkv2ytfpP2hof3N4PM4DddKgkUSxzKFteDAFFLTAlTP4mFyF7fTkCQY+DslQ YKGkFLwPa8gffg0aEmsLLE2F5W2xBN+CXa1KE8YBsJRi6kol2cRc19vCWCAP1uFC14Jt 1LgB8kIK7iWmPl8AaSJTHSrZbMlxohxVvhyzKuOtpO4pyo9tUsEzJL0eMWvoIYYsp+qW dTS+XM24yP7eTYK1oGWE2Q6NBn5O4bx/C8fkAz9MRxO7Ag6mnLds0u9UAWH8p7HvVoX+ jqiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ErCDV1RlGfEmvpVuro9k2uWEchez6IRM+qlf/FF9o8Y=; b=SQDY2sjIxBNHwp/doHxM4iZUKOvICZlTIdcWJaOhIUAe7q9BbkATZfYqAqlhCcyJ8K RLzTibqg7+NemvVBvegV9jBDnKfg+uAkXQ2nAPFU7zhmEc5XVxQrOM2Of08cpdvPf9vM zRsfMbnU7WBaV79AaFDAayL9jFDVc7d5cBAS5HRpuLkR/OPsbovoQu5PYLd09t6Ysrm0 y38XZfE6+hiVgezvk6Qnow+IXZSyZXnTKhhsL34SvLhU5vNZ2EZcDhUu6IgO8luSAr1h Ue/h+5E45HBu6Eivlx7XeEn2R5sTltvzKKjmkX66MMWNarm9siMiE0BhqCtOi4miwX8S lDaw== 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 l21si3929281oic.126.2020.02.14.21.37.37; Fri, 14 Feb 2020 21:37:49 -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 S1725912AbgBOFhY (ORCPT + 99 others); Sat, 15 Feb 2020 00:37:24 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:13562 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725797AbgBOFhY (ORCPT ); Sat, 15 Feb 2020 00:37:24 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01F5Yl2a015818; Sat, 15 Feb 2020 00:36:52 -0500 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y4j89gjjv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 15 Feb 2020 00:36:51 -0500 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01F5P3kg007845; Sat, 15 Feb 2020 05:36:51 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma03dal.us.ibm.com with ESMTP id 2y6895rxtt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 15 Feb 2020 05:36:51 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01F5aowv48693646 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 15 Feb 2020 05:36:50 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 48446AC066; Sat, 15 Feb 2020 05:36:50 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D75DBAC05B; Sat, 15 Feb 2020 05:36:47 +0000 (GMT) Received: from LeoBras.aus.stglabs.ibm.com (unknown [9.85.178.59]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Sat, 15 Feb 2020 05:36:47 +0000 (GMT) From: Leonardo Bras To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Christophe Leroy , Greg Kroah-Hartman , Leonardo Bras , Thomas Gleixner , desnesn@linux.ibm.com Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] powerpc/cputable: Remove unnecessary copy of cpu_spec->oprofile_type Date: Sat, 15 Feb 2020 02:36:37 -0300 Message-Id: <20200215053637.280880-1-leonardo@linux.ibm.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-15_01:2020-02-14,2020-02-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=917 impostorscore=0 priorityscore=1501 spamscore=0 adultscore=0 mlxscore=0 malwarescore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002150043 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Before checking for cpu_type == NULL, this same copy happens, so doing it here will just write the same value to the t->oprofile_type again. Remove the repeated copy, as it is unnecessary. Signed-off-by: Leonardo Bras --- arch/powerpc/kernel/cputable.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.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(unsigned long offset, */ if (old.oprofile_cpu_type != NULL) { t->oprofile_cpu_type = old.oprofile_cpu_type; - t->oprofile_type = old.oprofile_type; } } -- 2.24.1