drm/nouveau/therm: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:35:38 +0000 (12:35 -0600)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 4 Jun 2021 04:24:07 +0000 (23:24 -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
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c

index 2b031d4..684aff7 100644 (file)
@@ -41,6 +41,7 @@ pwm_info(struct nvkm_therm *therm, int line)
                default:
                        break;
                }
+               break;
        default:
                break;
        }