aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-01-12 20:27:43 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-01-12 20:27:43 +0000
commit23842aabe63bab798fecaff968153edde898b970 (patch)
tree6ed8f291959eadca37b1ebe96f544ec32bdd6226 /monitor.c
parent3eb26cc2167e771c49f7a20f70d07d61d327c1ef (diff)
monitor: fix dead assignment spotted by clang
Value stored to 'nb_per_line' is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 2403a979e4..b824e7c7cd 100644
--- 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) {