Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp575710ybb; Wed, 1 Apr 2020 05:54:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsz1b1CA3tirH5+fPCnnQyZYbg865bpoK+g3R6id9tHIo6Ln7qCXdM72V+vzVACC59b0S46 X-Received: by 2002:a4a:1882:: with SMTP id 124mr16957026ooo.60.1585745641032; Wed, 01 Apr 2020 05:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585745641; cv=none; d=google.com; s=arc-20160816; b=xhENUODfv+u/IRGXtDFnkxRmezQBNb8pvRWUouud1T4M62hTDVJUzSxz87wG2j0PhW w/I0bT0J0RNUCMc7K276mFMQdKJZao9pL2RCxCLsCQjb4t+uByAPSbzPkcp6iaYatftr JJ9yrdt2YHwXtiMdBmXfBV0w1MiKaGVponYZTIB8mKDF0JsF1gmOOQJ4ze5VEyKni6Gr 0wrJhyEtAnklrMdlzzf/8xZzWg+sxrkdBnxMDkcaAGmviXQ2+cFfd9dDidhgGAGw4pAq 80P2GDwFiadjEuFXhgRGV0jgmNVfuCsR2UfyVar1KRBCzQPUbbSacx4y4gKXMeVH51Cs Od4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=UpnVgWuSf2kkS4o1Stm7TJ1fOvbex1o+kUaEam9Iimk=; b=tDB2SpiSeONLWfdi0sLTIN+SdDM1SQjCKMoM1yZam/yZf6VqRfqGPgQWxvCrwet7B1 3NX5aqm2SILKi0gf/HKTHWAoF0lWNJ1flWLStInqZbQ5iG1juzaih3n72Kg4kuG33thB mATwxHkw53jx7Jbz1BBkfnXXfVqrdKMeCGN7zwOOvxenmXtAJGdUmQBLBUrbXKpYn/HC FUDCY5F/1M2lod1ITVarD7zlIms7EEYakeRzPO47hLDg7oLn8T1nU6wDXcL2KyN02v6W 9UQQb8lrEVhrE7TpYAnVyuLhVC4AHcw2dm1w6cGE5UwOjDvCrLb1iNzmDEnF+JcjC0Wa IG9Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e24si835496otk.203.2020.04.01.05.53.48; Wed, 01 Apr 2020 05:54:01 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732607AbgDAMxS (ORCPT + 99 others); Wed, 1 Apr 2020 08:53:18 -0400 Received: from ozlabs.org ([203.11.71.1]:35845 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732435AbgDAMxO (ORCPT ); Wed, 1 Apr 2020 08:53:14 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 48smMX3rdHz9sTF; Wed, 1 Apr 2020 23:53:12 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 41b8426fdb59218f56a6e3b3facd43a82816e3eb In-Reply-To: <20200215053637.280880-1-leonardo@linux.ibm.com> To: Leonardo Bras , Benjamin Herrenschmidt , Paul Mackerras , Christophe Leroy , Greg Kroah-Hartman , Leonardo Bras , Thomas Gleixner , desnesn@linux.ibm.com From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] powerpc/cputable: Remove unnecessary copy of cpu_spec->oprofile_type Message-Id: <48smMX3rdHz9sTF@ozlabs.org> Date: Wed, 1 Apr 2020 23:53:12 +1100 (AEDT) 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 05:36:37 UTC, Leonardo Bras wrote: > 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 Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/41b8426fdb59218f56a6e3b3facd43a82816e3eb cheers