[POWERPC] iseries: remove const warning
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 16 Aug 2006 05:24:28 +0000 (15:24 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 25 Aug 2006 03:27:35 +0000 (13:27 +1000)
Just one bit of fallout from the constification of the get_property
return value.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/iseries/viopath.c

index efeb6ae9df64ca16b25b1c31b0e03eb2d57a8b69..9baa4ee82592eec2d9723aa045a8ecdd282f83e8 100644 (file)
@@ -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);