Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 724c6abf authored by Tushar Behera's avatar Tushar Behera Committed by Benjamin Herrenschmidt
Browse files

powerpc/pseries/pci: Use NULL instead of 0 for pointers



The third argument for of_get_property() is a pointer, hence pass
NULL instead of 0.

Signed-off-by: default avatarTushar Behera <tushar.behera@linaro.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 6f79cb81
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -40,7 +40,8 @@ void pcibios_name_device(struct pci_dev *dev)
	 */
	dn = pci_device_to_OF_node(dev);
	if (dn) {
		const char *loc_code = of_get_property(dn, "ibm,loc-code", 0);
		const char *loc_code = of_get_property(dn, "ibm,loc-code",
				NULL);
		if (loc_code) {
			int loc_len = strlen(loc_code);
			if (loc_len < sizeof(dev->dev.name)) {