diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-08-24 16:28:32 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-08-24 21:25:24 +0200 |
commit | 2c65477f14a359db9f1edee5dd8e683d3dae69e2 (patch) | |
tree | 87b0bb5f9a4471c93594ce3118ec9bec11009a7f /arch/x86/events | |
parent | a430021faad6b4fa86c820fc3e7f8dbfc2f14fb4 (diff) |
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@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230824132832.78705-15-ilpo.jarvinen@linux.intel.com
Diffstat (limited to 'arch/x86/events')
-rw-r--r-- | arch/x86/events/intel/uncore_snbep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/events/intel/uncore_snbep.c b/arch/x86/events/intel/uncore_snbep.c index d49e90dc04a4..4d349986f76a 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) |