diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-02 16:20:33 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-11-02 19:12:10 -0400 |
commit | d34ded7ece57782e75bf31bb145836b9f280750f (patch) | |
tree | 0bca91b12138e4cd611aac09ee93f92dfc576769 /drivers | |
parent | 21dce3f4643eb541c7058e37b89a44a573ac95f6 (diff) |
drm/nouveau/bios/timing: mark expected switch fall-throughs
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c index 7e83c3985020..20ff5173cf8f 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c | |||
@@ -115,16 +115,21 @@ nvbios_timingEp(struct nvkm_bios *bios, int idx, | |||
115 | switch (min_t(u8, *hdr, 25)) { | 115 | switch (min_t(u8, *hdr, 25)) { |
116 | case 25: | 116 | case 25: |
117 | p->timing_10_24 = nvbios_rd08(bios, data + 0x18); | 117 | p->timing_10_24 = nvbios_rd08(bios, data + 0x18); |
118 | /* fall through */ | ||
118 | case 24: | 119 | case 24: |
119 | case 23: | 120 | case 23: |
120 | case 22: | 121 | case 22: |
121 | p->timing_10_21 = nvbios_rd08(bios, data + 0x15); | 122 | p->timing_10_21 = nvbios_rd08(bios, data + 0x15); |
123 | /* fall through */ | ||
122 | case 21: | 124 | case 21: |
123 | p->timing_10_20 = nvbios_rd08(bios, data + 0x14); | 125 | p->timing_10_20 = nvbios_rd08(bios, data + 0x14); |
126 | /* fall through */ | ||
124 | case 20: | 127 | case 20: |
125 | p->timing_10_CWL = nvbios_rd08(bios, data + 0x13); | 128 | p->timing_10_CWL = nvbios_rd08(bios, data + 0x13); |
129 | /* fall through */ | ||
126 | case 19: | 130 | case 19: |
127 | p->timing_10_18 = nvbios_rd08(bios, data + 0x12); | 131 | p->timing_10_18 = nvbios_rd08(bios, data + 0x12); |
132 | /* fall through */ | ||
128 | case 18: | 133 | case 18: |
129 | case 17: | 134 | case 17: |
130 | p->timing_10_16 = nvbios_rd08(bios, data + 0x10); | 135 | p->timing_10_16 = nvbios_rd08(bios, data + 0x10); |