From: Chen Qun Date: Mon, 2 Mar 2020 13:07:09 +0000 (+0800) Subject: display/pxa2xx_lcd: Remove redundant statement in pxa2xx_palette_parse() X-Git-Tag: v5.0.0-rc0~49^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e34d82eee9233d2b210391365b4b84ad78284cd;p=thirdparty%2Fqemu.git display/pxa2xx_lcd: Remove redundant statement in pxa2xx_palette_parse() 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 Signed-off-by: Chen Qun Reviewed-by: Laurent Vivier Message-Id: <20200302130715.29440-8-kuhn.chenqun@huawei.com> Signed-off-by: Laurent Vivier --- diff --git a/hw/display/pxa2xx_lcd.c b/hw/display/pxa2xx_lcd.c index 05f5f846712..464e93161a2 100644 --- a/hw/display/pxa2xx_lcd.c +++ b/hw/display/pxa2xx_lcd.c @@ -593,7 +593,6 @@ static void pxa2xx_palette_parse(PXA2xxLCDState *s, int ch, int bpp) n = 256; break; default: - format = 0; return; }