Skip to content

Commit

Permalink
display/pxa2xx_lcd: Remove redundant statement in pxa2xx_palette_parse()
Browse files Browse the repository at this point in the history
Clang static code analyzer show warning:
hw/display/pxa2xx_lcd.c:596:9: warning: Value stored to 'format' is never read
        format = 0;
        ^        ~

Reported-by: Euler Robot <[email protected]>
Signed-off-by: Chen Qun <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
  • Loading branch information
Kuhn-Chen authored and vivier committed Mar 9, 2020
1 parent 8849274 commit 4e34d82
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hw/display/pxa2xx_lcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ static void pxa2xx_palette_parse(PXA2xxLCDState *s, int ch, int bpp)
n = 256;
break;
default:
format = 0;
return;
}

Expand Down

0 comments on commit 4e34d82

Please sign in to comment.