Skip to content

Commit 2c65477

Browse files
ij-intelIngo Molnar
authored andcommitted
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
1 parent a430021 commit 2c65477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/events/intel/uncore_snbep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ static int snbep_pci2phy_map_init(int devid, int nodeid_loc, int idmap_loc, bool
15021502

15031503
pci_dev_put(ubox_dev);
15041504

1505-
return err ? pcibios_err_to_errno(err) : 0;
1505+
return pcibios_err_to_errno(err);
15061506
}
15071507

15081508
int snbep_uncore_pci_init(void)

0 commit comments

Comments
 (0)