Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp1072452lqp; Thu, 23 May 2024 08:14:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdd3KFJLHhLQ0L+UGYpxSLgYmN3IK7kXFtJG2j4ZDsFkQ9jQF3xbEBXarZfYnSjUiMSWn2SOHfwuAUyo5CPjLg0xDr5mqOd2KbHcLrMw== X-Google-Smtp-Source: AGHT+IGqVe9/lPqA88gp+qzb6Hul/KJs9dN7LkcBmCA3T2ZMjadIPTuIszTQPI5Bv8ntcycclFyQ X-Received: by 2002:a05:622a:34c:b0:43b:18e:b874 with SMTP id d75a77b69052e-43f9dfa3caamr58149701cf.0.1716477252902; Thu, 23 May 2024 08:14:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716477252; cv=pass; d=google.com; s=arc-20160816; b=CFt/6KUIlRqL2Zjid0raSGdgqm9uXhnhJLcMsOTEP60n1akuFZZBS2ebujxJwvX2Bw TJ36VCmCkG71soIElS+rK0DeiOnzkMQIrOpnG4lOfHJjx9LsAzMSMFZhw0wlhSOrj+gg S9gLJgI//uRpNns4icHvf3dLH1YCLgiGCTykx6Dx95WfB6//7GXyRyitwR06+jIjmdrT T+9V4rRtFepLRjIZ9lqSeV548vBdra0t2dzoXadRPqcpsMGyrE12eCpRBTeaCVszwQkE H331Ovsnvg+x0loWD6WSvUro9uMJ63Lky0e2skV80IlgRKILCYFqZj2514RwpX5n41eG OukA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=l5qiiMMs83xh8P8fKX6JM3MXbzkU68n+YOX5DJggCMw=; fh=olNsBiracMZIk34wonaf7FBo66V1/h/DG5SLkHr9Y7Q=; b=hOxvcMsq5TEld9mLH/qmG5WeT8FdJQ761nVriQ1+5KAUd+r/clChfahKHA+IdhYcGY BuvvEV5guN6JCOnr6WMEfwQpaK82NGDqZxevTEbwpZA8TmD4vQ6d8mh6IcX2XAWloOax KB4Vtr6UlfQyfUDFoQKQd2PqEtmx9duY2LE5DjtDBFWbhqWMIB2JmtmXnxuKXmOM1EOm zeT67Aun1j/+cwoz/s5B9xct48RzIOXXhTHcHYXuSS4bjSo+cH2JvqBDqvUZd3liWeqM d9y7+RzqbM3g81yshOv5wkQtpFtyxkjZxgRrEdwcXD74gIcW6l+rACY6a8x+/EWG59xq 2Q4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-187699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df566df1bsi331446891cf.309.2024.05.23.08.14.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 08:14:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-187699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CC751C21357 for ; Thu, 23 May 2024 15:14:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A0EBF9CC; Thu, 23 May 2024 15:14:06 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74798DDB8; Thu, 23 May 2024 15:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716477245; cv=none; b=sMB2+U4KhXHLck1MKuLradgL2KGI+BJkm4IWr484vjJzShYmR/2Xdzh9f0NrafBEKiBFI5O1TfcN3r6XxWUdFXAAcp5DUR9VESyD4t2FxhFiM53Ms0/uGMzaBePZ82HMN7e+94nBa7gNpKgAuCJtgBeKs7NZVzLOdZV+82zYjKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716477245; c=relaxed/simple; bh=SQE2i0yMAkLmu1dTnE6gJPQncGEH1UEWiMQDHn0szng=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rRrv0zrI4wRhPPdT6Ags4MViTBV4B20soS7p91EqOnDlWJFPGAvwFCBaq8wFo8zfT5VmwQq85nhvcWGztt9TnSbAlbQZ1DB9bU+wKJmDzB/kv8Ij6JzUBSUVVgM0WYKllpfZg6AvrwB++SeeG2anUKto1qj6CaLWN4GbDf/1NrI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VlWnP1XzHz6JB16; Thu, 23 May 2024 23:10:17 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 9467D140A1B; Thu, 23 May 2024 23:13:59 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 23 May 2024 16:13:59 +0100 Date: Thu, 23 May 2024 16:13:57 +0100 From: Jonathan Cameron To: Zaid Alali CC: , , , , , , , , , , , , , , Subject: Re: [RFC PATCH v2 3/8] ACPI: APEI: EINJ: Remove redundant calls to einj_get_available_error_type Message-ID: <20240523161357.00007532@Huawei.com> In-Reply-To: <20240521211036.227674-4-zaidal@os.amperecomputing.com> References: <20240521211036.227674-1-zaidal@os.amperecomputing.com> <20240521211036.227674-4-zaidal@os.amperecomputing.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500004.china.huawei.com (7.191.163.9) To lhrpeml500005.china.huawei.com (7.191.163.240) On Tue, 21 May 2024 14:10:31 -0700 Zaid Alali wrote: > A single call to einj_get_available_error_type in init function is > sufficient to save the return value in a global variable to be used > later in various places in the code. This commit does not introduce > any functional changes, but only removing unnecessary redundant > function calls. > > Signed-off-by: Zaid Alali Seems reasonable to me. Reviewed-by: Jonathan Cameron