diff options
author | Arnd Bergmann <[email protected]> | 2019-06-17 14:34:30 +0200 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2019-06-23 18:33:01 -0700 |
commit | 3253854dc19f1610b8d01fb9265bbd98ce18abd7 (patch) | |
tree | 228acd9bfef123f4884162accef70450d9b31f8a /lib/test_overflow.c | |
parent | 7d45deb31bec3992cd92a240946fbf872661fa2c (diff) |
hwmon: (max6650) Fix unused variable warning
The newly added variable is only used in an #if block:
drivers/hwmon/max6650.c: In function 'max6650_probe':
drivers/hwmon/max6650.c:766:33: error: unused variable 'cooling_dev' [-Werror=unused-variable]
Change the #if to if() so the compiler can see what is actually
going on.
Fixes: a8463754a5a9 ("hwmon: (max6650) Use devm function to register thermal device")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions