mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
target/riscv: fix unused initialization
Scan-build reports: Unused code: Dead assignment riscv.c:716 Value stored to 'result' is never read Remove the initialization of variable 'result'. Change-Id: Ied67bb4fcfa5bace186522074247ead43a5d5cd5 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7207 Reviewed-by: Tim Newsome <tim@sifive.com> Reviewed-by: Jan Matyas <matyas@codasip.com> Tested-by: jenkins
This commit is contained in:
@@ -713,7 +713,6 @@ static int add_trigger(struct target *target, struct trigger *trigger)
|
||||
return result;
|
||||
int type = get_field(tdata1, MCONTROL_TYPE(riscv_xlen(target)));
|
||||
|
||||
result = ERROR_OK;
|
||||
switch (type) {
|
||||
case 1:
|
||||
result = maybe_add_trigger_t1(target, trigger, tdata1);
|
||||
|
||||
Reference in New Issue
Block a user