projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eb26cc
)
monitor: fix dead assignment spotted by clang
author
Blue Swirl
<blauwirbel@gmail.com>
Tue, 12 Jan 2010 20:27:43 +0000
(20:27 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Tue, 12 Jan 2010 20:27:43 +0000
(20:27 +0000)
Value stored to 'nb_per_line' is never read.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
monitor.c
patch
|
blob
|
history
diff --git
a/monitor.c
b/monitor.c
index 2403a979e409574d9bd3abf1d0c6b041e0b509ba..b824e7c7cdf71fee3c66e1aefa06839e51be7750 100644
(file)
--- a/
monitor.c
+++ b/
monitor.c
@@
-1109,7
+1109,7
@@
static void memory_dump(Monitor *mon, int count, int format, int wsize,
target_phys_addr_t addr, int is_physical)
{
CPUState *env;
- int
nb_per_line,
l, line_size, i, max_digits, len;
+ int l, line_size, i, max_digits, len;
uint8_t buf[16];
uint64_t v;
@@
-1148,7
+1148,6
@@
static void memory_dump(Monitor *mon, int count, int format, int wsize,
line_size = 8;
else
line_size = 16;
- nb_per_line = line_size / wsize;
max_digits = 0;
switch(format) {