riscv: drop unused variable
The array newly_halted[] is assigned but its value is never used. Drop it! Change-Id: I678812a31c45a3ec03716e3eee6a30b8e8947926 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
0ce272ff74
commit
0944e12232
|
@ -2110,7 +2110,6 @@ int riscv_openocd_poll(struct target *target)
|
||||||
|
|
||||||
if (target->smp) {
|
if (target->smp) {
|
||||||
unsigned halts_discovered = 0;
|
unsigned halts_discovered = 0;
|
||||||
bool newly_halted[RISCV_MAX_HARTS] = {0};
|
|
||||||
unsigned should_remain_halted = 0;
|
unsigned should_remain_halted = 0;
|
||||||
unsigned should_resume = 0;
|
unsigned should_resume = 0;
|
||||||
unsigned i = 0;
|
unsigned i = 0;
|
||||||
|
@ -2118,7 +2117,6 @@ int riscv_openocd_poll(struct target *target)
|
||||||
list = list->next, i++) {
|
list = list->next, i++) {
|
||||||
struct target *t = list->target;
|
struct target *t = list->target;
|
||||||
riscv_info_t *r = riscv_info(t);
|
riscv_info_t *r = riscv_info(t);
|
||||||
assert(i < DIM(newly_halted));
|
|
||||||
enum riscv_poll_hart out = riscv_poll_hart(t, r->current_hartid);
|
enum riscv_poll_hart out = riscv_poll_hart(t, r->current_hartid);
|
||||||
switch (out) {
|
switch (out) {
|
||||||
case RPH_NO_CHANGE:
|
case RPH_NO_CHANGE:
|
||||||
|
@ -2129,7 +2127,6 @@ int riscv_openocd_poll(struct target *target)
|
||||||
break;
|
break;
|
||||||
case RPH_DISCOVERED_HALTED:
|
case RPH_DISCOVERED_HALTED:
|
||||||
halts_discovered++;
|
halts_discovered++;
|
||||||
newly_halted[i] = true;
|
|
||||||
t->state = TARGET_HALTED;
|
t->state = TARGET_HALTED;
|
||||||
enum riscv_halt_reason halt_reason =
|
enum riscv_halt_reason halt_reason =
|
||||||
riscv_halt_reason(t, r->current_hartid);
|
riscv_halt_reason(t, r->current_hartid);
|
||||||
|
|
Loading…
Reference in New Issue