mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09: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@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
This commit is contained in:
committed by
Ingo Molnar
parent
a430021faa
commit
2c65477f14
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user