projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8849274
)
display/pxa2xx_lcd: Remove redundant statement in pxa2xx_palette_parse()
author
Chen Qun
<kuhn.chenqun@huawei.com>
Mon, 2 Mar 2020 13:07:09 +0000
(21:07 +0800)
committer
Laurent Vivier
<laurent@vivier.eu>
Mon, 9 Mar 2020 14:59:31 +0000
(15:59 +0100)
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>
hw/display/pxa2xx_lcd.c
patch
|
blob
|
history
diff --git
a/hw/display/pxa2xx_lcd.c
b/hw/display/pxa2xx_lcd.c
index 05f5f8467123fe178f4291660e9fb8252436c33c..464e93161a2130464f6154ee8e1d8b36f0936ce4 100644
(file)
--- 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;
}