From nobody Tue Dec 16 20:15:22 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED75FC6FA8F for ; Thu, 24 Aug 2023 20:13:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243463AbjHXUMj (ORCPT ); Thu, 24 Aug 2023 16:12:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243445AbjHXUM2 (ORCPT ); Thu, 24 Aug 2023 16:12:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01566CE; Thu, 24 Aug 2023 13:12:25 -0700 (PDT) Date: Thu, 24 Aug 2023 20:12:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1692907943; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4v26N/e7MwAvDdqriWJI++YZ4UBZmKSgwn13czBL9Ls=; b=NgL9R0spklTPnjcueKr6LoebJhh59WuLXRMh4hPnlX2cqVW0dhzXNzlpsIfoS9Pv2doK4g CVJiQ2e/Fo05Mz432i+eylqoyoMKL5LwT20EthBgwEem0yllm4/gPKTjpF5JBEVHyvz8ba 9SJ4+Tfg0SXe1QQuMj3zgWbmuKhl20xej5B/OI2Q3PT/1aoJd0SxKkaZmm5QmGb4Qtqoqe q9eG5KJMR36zatSIc+qpjXcz3hfuggAT37w3Gqy7MwiGlz7ahgxmQ0NzJQSCoPLKuHFNOd GbDhHcUQGS8wiNV751dNKqlPOrcNf5RwTXAAmAsC1+BesiVn6CvUpAOxGoqK1A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1692907943; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4v26N/e7MwAvDdqriWJI++YZ4UBZmKSgwn13czBL9Ls=; b=l5JL1nn3UO54gIqhGGPqDnIYLogM8hNCeHt6LVy4G+fm90mKD3jPg0UquPdzQ2zEtKYyLd dUPItX2kpeYm19Bg== From: tip-bot2 for Ilpo =?utf-8?q?J=C3=A4rvinen?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/x86/uncore: Remove unnecessary ?: operator around pcibios_err_to_errno() call Cc: ilpo.jarvinen@linux.intel.com, Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230824132832.78705-15-ilpo.jarvinen@linux.intel.com> References: <20230824132832.78705-15-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Message-ID: <169290794282.27769.1361924280256053683.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 2c65477f14a359db9f1edee5dd8e683d3dae69e2 Gitweb: https://git.kernel.org/tip/2c65477f14a359db9f1edee5dd8e683d3= dae69e2 Author: Ilpo J=C3=A4rvinen AuthorDate: Thu, 24 Aug 2023 16:28:32 +03:00 Committer: Ingo Molnar CommitterDate: Thu, 24 Aug 2023 21:25:24 +02:00 perf/x86/uncore: Remove unnecessary ?: operator around pcibios_err_to_errno= () call If err =3D=3D 0, pcibios_err_to_errno(err) returns 0 so the ?: construct can be removed. Signed-off-by: Ilpo J=C3=A4rvinen Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20230824132832.78705-15-ilpo.jarvinen@linux= .intel.com --- arch/x86/events/intel/uncore_snbep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/events/intel/uncore_snbep.c b/arch/x86/events/intel/u= ncore_snbep.c index d49e90d..4d34998 100644 --- a/arch/x86/events/intel/uncore_snbep.c +++ b/arch/x86/events/intel/uncore_snbep.c @@ -1502,7 +1502,7 @@ static int snbep_pci2phy_map_init(int devid, int node= id_loc, int idmap_loc, bool =20 pci_dev_put(ubox_dev); =20 - return err ? pcibios_err_to_errno(err) : 0; + return pcibios_err_to_errno(err); } =20 int snbep_uncore_pci_init(void)