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

Commit a0a428e3 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras
Browse files

[POWERPC] iseries: remove const warning



Just one bit of fallout from the constification of the get_property
return value.

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 9a2ded55
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ static int proc_viopath_show(struct seq_file *m, void *v)
	HvLpEvent_Rc hvrc;
	DECLARE_MUTEX_LOCKED(Semaphore);
	struct device_node *node;
	const char *sysid;

	buf = kmalloc(HW_PAGE_SIZE, GFP_KERNEL);
	if (!buf)
@@ -152,15 +153,15 @@ static int proc_viopath_show(struct seq_file *m, void *v)
	seq_printf(m, "AVAILABLE_VETH=%x\n", vlanMap);

	node = of_find_node_by_path("/");
	buf = NULL;
	sysid = NULL;
	if (node != NULL)
		buf = get_property(node, "system-id", NULL);
		sysid = get_property(node, "system-id", NULL);

	if (buf == NULL)
	if (sysid == NULL)
		seq_printf(m, "SRLNBR=<UNKNOWN>\n");
	else
		/* Skip "IBM," on front of serial number, see dt.c */
		seq_printf(m, "SRLNBR=%s\n", buf + 4);
		seq_printf(m, "SRLNBR=%s\n", sysid + 4);

	of_node_put(node);