Skip to contentSkip to conversation

bochs-display: add missing break

PATCH In review Gerd Hoffmann 3 participants 3 messages May 25, 2018 – May 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bochs-display: add missing break

Fixes CID 1391291
---
 hw/display/bochs-display.c | 1 +
 1 file changed, 1 insertion(+)
hw/display/bochs-display.c +1 -0
index c33524b558..1187d77576 100644
@@ -158,6 +158,7 @@ static int bochs_display_get_mode(BochsDisplayState *s,
         /* best effort: support native endianess only */
         mode->format = PIXMAN_r5g6b5;
         mode->bytepp = 2;
+        break;
     case 32:
         mode->format = s->big_endian_fb
             ? PIXMAN_BE_x8r8g8b8
Signature · 1 line
2.9.3
Reviewed-by on v1 1/1
#2 lore raw
In reply to Gerd Hoffmann
Quoted 11 lines · Gerd Hoffmann
Fixes CID 1391291
---
 hw/display/bochs-display.c | 1 +
 1 file changed, 1 insertion(+)
hw/display/bochs-display.c +0 -0
index c33524b558..1187d77576 100644

hw/display/bochs-display.c static int bochs_display_get_mode(BochsDisplayState *s, · line 161

Quoted 4 lines
hw/display/bochs-display.c +1 -0
@@ -158,6 +158,7 @@ static int bochs_display_get_mode(BochsDisplayState *s,
         /* best effort: support native endianess only */
         mode->format = PIXMAN_r5g6b5;
         mode->bytepp = 2;
+        break;
Quoted 4 lines
hw/display/bochs-display.c +0 -0
     case 32:
         mode->format = s->big_endian_fb
             ? PIXMAN_BE_x8r8g8b8