Skip to content
Commit 1e4aa3e1 authored by Zeng Heng's avatar Zeng Heng Committed by Guenter Roeck
Browse files

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: default avatarZeng Heng <zengheng4@huawei.com>
Link: https://lore.kernel.org/r/20220927114352.2498079-1-zengheng4@huawei.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 760bda91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment