]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
hwmon: (nct6775) Remove an unused variable
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 19 Oct 2013 08:55:15 +0000 (11:55 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 19 Oct 2013 16:04:24 +0000 (09:04 -0700)
We don't actually use "j" for anything.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c

index 7a1b6a75ed54c6a4b686bcbf07b8f44d748e1a5f..d17325db0ea3d9f2478fc2fd7c42641603797e92 100644 (file)
@@ -939,7 +939,7 @@ nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg,
        struct sensor_device_attribute_2 *a2;
        struct attribute **attrs;
        struct sensor_device_template **t;
-       int i, j, count;
+       int i, count;
 
        if (repeat <= 0)
                return ERR_PTR(-EINVAL);
@@ -970,7 +970,7 @@ nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg,
 
        for (i = 0; i < repeat; i++) {
                t = tg->templates;
-               for (j = 0; *t != NULL; j++) {
+               while (*t != NULL) {
                        snprintf(su->name, sizeof(su->name),
                                 (*t)->dev_attr.attr.name, tg->base + i);
                        if ((*t)->s2) {