aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-10-19 04:55:15 -0400
committerGuenter Roeck <linux@roeck-us.net>2013-10-19 12:04:24 -0400
commit1e687e806b8ea1b1428e3e664afd4081e435f6d0 (patch)
tree59530aa8364b0444c4210644b258d4bc6c5f92f8
parent0011ddfe6a03279fae60d237f2f4d0d7f7678928 (diff)
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>
-rw-r--r--drivers/hwmon/nct6775.c4
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,
939 struct sensor_device_attribute_2 *a2; 939 struct sensor_device_attribute_2 *a2;
940 struct attribute **attrs; 940 struct attribute **attrs;
941 struct sensor_device_template **t; 941 struct sensor_device_template **t;
942 int i, j, count; 942 int i, count;
943 943
944 if (repeat <= 0) 944 if (repeat <= 0)
945 return ERR_PTR(-EINVAL); 945 return ERR_PTR(-EINVAL);
@@ -970,7 +970,7 @@ nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg,
970 970
971 for (i = 0; i < repeat; i++) { 971 for (i = 0; i < repeat; i++) {
972 t = tg->templates; 972 t = tg->templates;
973 for (j = 0; *t != NULL; j++) { 973 while (*t != NULL) {
974 snprintf(su->name, sizeof(su->name), 974 snprintf(su->name, sizeof(su->name),
975 (*t)->dev_attr.attr.name, tg->base + i); 975 (*t)->dev_attr.attr.name, tg->base + i);
976 if ((*t)->s2) { 976 if ((*t)->s2) {