hwmon: (nct6683) remove unused variable in nct6683_create_attr_group
authorZeng Heng <zengheng4@huawei.com>
Tue, 27 Sep 2022 11:43:52 +0000 (19:43 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 2 Oct 2022 15:01:18 +0000 (08:01 -0700)
commit1e4aa3e18dac1ef3a07a9d0e2662208644bd93de
treeb389e9b01d1bcf654a996fe48a3f8c4c4d07b9cd
parent760bda91cb4f5f778a6193b20c22726209579164
hwmon: (nct6683) remove unused variable in nct6683_create_attr_group

When enable 'unused-but-set-variable' compile
warning option, it would raise warning as below:

drivers/hwmon/nct6683.c:415:9:
warning: variable 'j' set but not used [-Wunused-but-set-variable]

Variable 'j' in nct6683_create_attr_group is unused,
so remove it and simplify the 'for' loop.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Link: https://lore.kernel.org/r/20220927114352.2498079-1-zengheng4@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6683.c