]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: unisys: clean up extra parens in vbuschannel_devinfo_to_string
authorBenjamin Romer <benjamin.romer@unisys.com>
Thu, 23 Oct 2014 18:29:42 +0000 (14:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:07 +0000 (10:33 +0800)
Get rid of the unnecessary parenthesis in several assignments in
vbuschannel_devinfo_to_string().

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h

index de0447c97df42a40c8968b9af7d15335672d23d9..28864a89908c817b7e8670f6392f630b7c800e09 100644 (file)
@@ -157,7 +157,7 @@ vbuschannel_devinfo_to_string(struct ultra_vbus_deviceinfo *devinfo,
        int nsrc, x, i, pad;
        int chars = 0;
 
-       psrc = &(devinfo->devtype[0]);
+       psrc = &devinfo->devtype[0];
        nsrc = sizeof(devinfo->devtype);
        if (vbuschannel_sanitize_buffer(NULL, 0, psrc, nsrc) <= 0)
                return 0;
@@ -187,7 +187,7 @@ vbuschannel_devinfo_to_string(struct ultra_vbus_deviceinfo *devinfo,
        VBUSCHANNEL_ADDACHAR(' ', p, remain, chars);
 
        /* emit driver name */
-       psrc = &(devinfo->drvname[0]);
+       psrc = &devinfo->drvname[0];
        nsrc = sizeof(devinfo->drvname);
        x = vbuschannel_sanitize_buffer(p, remain, psrc, nsrc);
        p += x;
@@ -199,7 +199,7 @@ vbuschannel_devinfo_to_string(struct ultra_vbus_deviceinfo *devinfo,
        VBUSCHANNEL_ADDACHAR(' ', p, remain, chars);
 
        /* emit strings */
-       psrc = &(devinfo->infostrs[0]);
+       psrc = &devinfo->infostrs[0];
        nsrc = sizeof(devinfo->infostrs);
        x = vbuschannel_sanitize_buffer(p, remain, psrc, nsrc);
        p += x;