提交 1e687e80 编写于 作者: D Dan Carpenter 提交者: Guenter Roeck

hwmon: (nct6775) Remove an unused variable

We don't actually use "j" for anything.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 0011ddfe
...@@ -939,7 +939,7 @@ nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg, ...@@ -939,7 +939,7 @@ nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg,
struct sensor_device_attribute_2 *a2; struct sensor_device_attribute_2 *a2;
struct attribute **attrs; struct attribute **attrs;
struct sensor_device_template **t; struct sensor_device_template **t;
int i, j, count; int i, count;
if (repeat <= 0) if (repeat <= 0)
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
...@@ -970,7 +970,7 @@ nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg, ...@@ -970,7 +970,7 @@ nct6775_create_attr_group(struct device *dev, struct sensor_template_group *tg,
for (i = 0; i < repeat; i++) { for (i = 0; i < repeat; i++) {
t = tg->templates; t = tg->templates;
for (j = 0; *t != NULL; j++) { while (*t != NULL) {
snprintf(su->name, sizeof(su->name), snprintf(su->name, sizeof(su->name),
(*t)->dev_attr.attr.name, tg->base + i); (*t)->dev_attr.attr.name, tg->base + i);
if ((*t)->s2) { if ((*t)->s2) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册