diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-10-19 12:55:15 +0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-10-19 20:04:24 +0400 |
commit | 1e687e806b8ea1b1428e3e664afd4081e435f6d0 (patch) | |
tree | 59530aa8364b0444c4210644b258d4bc6c5f92f8 /drivers/hwmon | |
parent | 0011ddfe6a03279fae60d237f2f4d0d7f7678928 (diff) | |
download | linux-1e687e806b8ea1b1428e3e664afd4081e435f6d0.tar.xz |
hwmon: (nct6775) Remove an unused variable
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/nct6775.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index 7a1b6a75ed54..d17325db0ea3 100644 --- a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c @@ -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) { |