monitor: fix dead assignment spotted by clang
Value stored to 'nb_per_line' is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
3eb26cc216
commit
23842aabe6
@ -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,
|
|||||||
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user