[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <169290794282.27769.1361924280256053683.tip-bot2@tip-bot2>
Date: Thu, 24 Aug 2023 20:12:22 -0000
From: tip-bot2 for Ilpo Järvinen
<tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: ilpo.jarvinen@...ux.intel.com, Ingo Molnar <mingo@...nel.org>,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [tip: perf/core] perf/x86/uncore: Remove unnecessary ?: operator
around pcibios_err_to_errno() call
The following commit has been merged into the perf/core branch of tip:
Commit-ID: 2c65477f14a359db9f1edee5dd8e683d3dae69e2
Gitweb: https://git.kernel.org/tip/2c65477f14a359db9f1edee5dd8e683d3dae69e2
Author: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
AuthorDate: Thu, 24 Aug 2023 16:28:32 +03:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Thu, 24 Aug 2023 21:25:24 +02:00
perf/x86/uncore: Remove unnecessary ?: operator around pcibios_err_to_errno() call
If err == 0, pcibios_err_to_errno(err) returns 0 so the ?: construct
can be removed.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
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/uncore_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 nodeid_loc, int idmap_loc, bool
pci_dev_put(ubox_dev);
- return err ? pcibios_err_to_errno(err) : 0;
+ return pcibios_err_to_errno(err);
}
int snbep_uncore_pci_init(void)
Powered by blists - more mailing lists