staging: unisys: visorbus: replaced vague variable name in typeguid_show
authorAlexander Curtin <alexander.curtin@unisys.com>
Thu, 24 Mar 2016 02:15:49 +0000 (22:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
The variable name "s" doesn't indicate the purpose of the string, which
is to store the id collected from the visorchannel_id function. This
just replaces the name with "typeid".

Signed-off-by: Alexander Curtin <alexander.curtin@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c

index 54d77dd26be0560c8d302a451df51c3c9f8c5648..af5add50c9402b0c31024ed288c5fb91ddd27004 100644 (file)
@@ -279,12 +279,12 @@ static ssize_t typeguid_show(struct device *dev, struct device_attribute *attr,
                             char *buf)
 {
        struct visor_device *vdev = to_visor_device(dev);
-       char s[99];
+       char typeid[99];
 
        if (!vdev->visorchannel)
                return 0;
        return snprintf(buf, PAGE_SIZE, "%s\n",
-                       visorchannel_id(vdev->visorchannel, s));
+                       visorchannel_id(vdev->visorchannel, typeid));
 }
 
 static ssize_t zoneguid_show(struct device *dev, struct device_attribute *attr,