projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3752445
)
hwmon: (max6621) Fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 20 Nov 2020 18:36:09 +0000
(12:36 -0600)
committer
Gustavo A. R. Silva
<gustavoars@kernel.org>
Tue, 18 May 2021 00:50:37 +0000
(19:50 -0500)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.
Link:
https://github.com/KSPP/linux/issues/115
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/hwmon/max6621.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/max6621.c
b/drivers/hwmon/max6621.c
index 367855d5edaee36e83b00a8ca7ad6d5aea3fb714..7821132e17faa850ac20c4249fa5ae2bf14b784a 100644
(file)
--- a/
drivers/hwmon/max6621.c
+++ b/
drivers/hwmon/max6621.c
@@
-156,7
+156,7
@@
max6621_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr,
default:
break;
}
-
+ break;
default:
break;
}