OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a430021
)
perf/x86/uncore: Remove unnecessary ?: operator around pcibios_err_to_errno() call
author
Ilpo Järvinen
<ilpo.jarvinen@linux.intel.com>
Thu, 24 Aug 2023 13:28:32 +0000
(16:28 +0300)
committer
Ingo Molnar
<mingo@kernel.org>
Thu, 24 Aug 2023 19:25:24 +0000
(21:25 +0200)
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
arch/x86/events/intel/uncore_snbep.c
patch
|
blob
|
history
diff --git
a/arch/x86/events/intel/uncore_snbep.c
b/arch/x86/events/intel/uncore_snbep.c
index
d49e90d
..
4d34998
100644
(file)
--- 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)