Commit 98128de3 authored by Guenter Roeck's avatar Guenter Roeck

hwmon: (hwmon-vid) Add __maybe_unused attribute to dummy variable

This gets rid of this warning:

drivers/hwmon/hwmon-vid.c: In function 'get_via_model_d_vrm':
drivers/hwmon/hwmon-vid.c:249:27: warning: variable 'dummy' set but not used
[-Wunused-but-set-variable]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarJean Delvare <khali@linux-fr.org>
parent e5c832d5
...@@ -246,7 +246,7 @@ static struct vrm_model vrm_models[] = { ...@@ -246,7 +246,7 @@ static struct vrm_model vrm_models[] = {
*/ */
static u8 get_via_model_d_vrm(void) static u8 get_via_model_d_vrm(void)
{ {
unsigned int vid, brand, dummy; unsigned int vid, brand, __maybe_unused dummy;
static const char *brands[4] = { static const char *brands[4] = {
"C7-M", "C7", "Eden", "C7-D" "C7-M", "C7", "Eden", "C7-D"
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment