Skip to content

Commit

Permalink
drm/nouveau/bios/timing: 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: 1260018
Addresses-Coverity-ID: 1260019
Addresses-Coverity-ID: 1260022
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 21dce3f commit d34ded7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,21 @@ nvbios_timingEp(struct nvkm_bios *bios, int idx,
switch (min_t(u8, *hdr, 25)) {
case 25:
p->timing_10_24 = nvbios_rd08(bios, data + 0x18);
/* fall through */
case 24:
case 23:
case 22:
p->timing_10_21 = nvbios_rd08(bios, data + 0x15);
/* fall through */
case 21:
p->timing_10_20 = nvbios_rd08(bios, data + 0x14);
/* fall through */
case 20:
p->timing_10_CWL = nvbios_rd08(bios, data + 0x13);
/* fall through */
case 19:
p->timing_10_18 = nvbios_rd08(bios, data + 0x12);
/* fall through */
case 18:
case 17:
p->timing_10_16 = nvbios_rd08(bios, data + 0x10);
Expand Down

0 comments on commit d34ded7

Please sign in to comment.