提交 23842aab 编写于 作者: B Blue Swirl

monitor: fix dead assignment spotted by clang

Value stored to 'nb_per_line' is never read.
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 3eb26cc2
...@@ -1109,7 +1109,7 @@ static void memory_dump(Monitor *mon, int count, int format, int wsize, ...@@ -1109,7 +1109,7 @@ static void memory_dump(Monitor *mon, int count, int format, int wsize,
target_phys_addr_t addr, int is_physical) target_phys_addr_t addr, int is_physical)
{ {
CPUState *env; 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]; uint8_t buf[16];
uint64_t v; uint64_t v;
...@@ -1148,7 +1148,6 @@ static void memory_dump(Monitor *mon, int count, int format, int wsize, ...@@ -1148,7 +1148,6 @@ static void memory_dump(Monitor *mon, int count, int format, int wsize,
line_size = 8; line_size = 8;
else else
line_size = 16; line_size = 16;
nb_per_line = line_size / wsize;
max_digits = 0; max_digits = 0;
switch(format) { switch(format) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册