cpufreq: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 13 Jul 2021 16:51:58 +0000 (11:51 -0500)
committerGustavo 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

index 182a4dbca0952c7cc6a7db2e1d5940555000c926..c538a153ee8284be2d59ae2dcc0c30391e0dfd67 100644 (file)
@@ -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;