Skip to content

Commit

Permalink
drm/nouveau/devinit/nv04: mark expected switch fall-throughs
Browse files Browse the repository at this point in the history
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 143119
Addresses-Coverity-ID: 143120
Addresses-Coverity-ID: 143121
Addresses-Coverity-ID: 143122
Addresses-Coverity-ID: 143123
Addresses-Coverity-ID: 143124
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Gustavo A. R. Silva authored and Ben Skeggs committed Nov 2, 2017
1 parent 1a5c816 commit 21dce3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ powerctrl_1_shift(int chip_version, int reg)

switch (reg) {
case 0x680520:
shift += 4;
shift += 4; /* fall through */
case 0x680508:
shift += 4;
shift += 4; /* fall through */
case 0x680504:
shift += 4;
shift += 4; /* fall through */
case 0x680500:
shift += 4;
}
Expand Down Expand Up @@ -245,11 +245,11 @@ setPLL_double_highregs(struct nvkm_devinit *init, u32 reg1,

switch (reg1) {
case 0x680504:
shift_c040 += 2;
shift_c040 += 2; /* fall through */
case 0x680500:
shift_c040 += 2;
shift_c040 += 2; /* fall through */
case 0x680520:
shift_c040 += 2;
shift_c040 += 2; /* fall through */
case 0x680508:
shift_c040 += 2;
}
Expand Down

0 comments on commit 21dce3f

Please sign in to comment.