From 909c9d4ab2e5ee5180ef81248608fa2109c3dba7 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 3 May 2018 17:58:44 -0700 Subject: [PATCH] Conform to OpenOCD style Change-Id: I3954a8ac254b460560fa1414c5921777e4005645 --- src/target/riscv/riscv-013.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 1869038e3..f3fe76b1a 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -2722,9 +2722,8 @@ static int riscv013_select_current_hart(struct target *target) RISCV_INFO(r); dm013_info_t *dm = get_dm(target); - if (r->current_hartid == dm->current_hartid) { + if (r->current_hartid == dm->current_hartid) return ERROR_OK; - } uint32_t dmcontrol; if (dmi_read(target, &dmcontrol, DMI_DMCONTROL) != ERROR_OK)