summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-07-13 11:51:58 -0500
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-07-13 11:53:07 -0500
commit2e7ea96924acc502929c3ffa0fcbdaeec00b2208 (patch)
tree1afe2982f372f7f7a58e0eab42c4ec83a074dd99
parente181ad43887c6b6b5995e9b191666f04242d77eb (diff)
downloadlinux-next-2e7ea96924acc502929c3ffa0fcbdaeec00b2208.tar.gz
cpufreq: Fix fall-through warning for Clang
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>
-rw-r--r--drivers/cpufreq/longhaul.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c
index 182a4dbca095..c538a153ee82 100644
--- 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;