aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Qun <kuhn.chenqun@huawei.com>2020-03-02 21:07:09 +0800
committerLaurent Vivier <laurent@vivier.eu>2020-03-09 15:59:31 +0100
commit4e34d82eee9233d2b210391365b4b84ad78284cd (patch)
tree534009c2b08c91df4cfdf39304bd7dbcb0204dcb
parent88492745a50372f81d4af7fd35aca26b41603776 (diff)
downloadqemu-4e34d82eee9233d2b210391365b4b84ad78284cd.zip
qemu-4e34d82eee9233d2b210391365b4b84ad78284cd.tar.gz
qemu-4e34d82eee9233d2b210391365b4b84ad78284cd.tar.bz2
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 <euler.robot@huawei.com> Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20200302130715.29440-8-kuhn.chenqun@huawei.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r--hw/display/pxa2xx_lcd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/display/pxa2xx_lcd.c b/hw/display/pxa2xx_lcd.c
index 05f5f84..464e931 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;
}