projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e181ad4
)
cpufreq: Fix fall-through warning for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Tue, 13 Jul 2021 16:51:58 +0000
(11:51 -0500)
committer
Gustavo A. R. Silva
<gustavoars@kernel.org>
Tue, 13 Jul 2021 16:53:07 +0000
(11:53 -0500)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a
fallthrough warning by simply dropping the empty default case at
the bottom.
Link:
https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/cpufreq/longhaul.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/longhaul.c
b/drivers/cpufreq/longhaul.c
index 182a4dbca0952c7cc6a7db2e1d5940555000c926..c538a153ee8284be2d59ae2dcc0c30391e0dfd67 100644
(file)
--- a/
drivers/cpufreq/longhaul.c
+++ b/
drivers/cpufreq/longhaul.c
@@
-942,8
+942,6
@@
static int __init longhaul_init(void)
return cpufreq_register_driver(&longhaul_driver);
case 10:
pr_err("Use acpi-cpufreq driver for VIA C7\n");
- default:
- ;
}
return -ENODEV;