Commit 2c65477f authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Ingo Molnar
Browse files

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: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230824132832.78705-15-ilpo.jarvinen@linux.intel.com
parent a430021f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)