Skip to content

Commit 24f5c80

Browse files
committed
Remove unintended return statements
1 parent ffefe18 commit 24f5c80

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clint.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ void clint_read(hart_t *vm,
8080
if (!clint_reg_read(clint, addr, value))
8181
vm_set_exception(vm, RV_EXC_LOAD_FAULT, vm->exc_val);
8282
*value = (*value) >> (RV_MEM_SW - width);
83-
return;
8483
}
8584

8685
void clint_write(hart_t *vm,
@@ -91,5 +90,4 @@ void clint_write(hart_t *vm,
9190
{
9291
if (!clint_reg_write(clint, addr, value >> (RV_MEM_SW - width)))
9392
vm_set_exception(vm, RV_EXC_STORE_FAULT, vm->exc_val);
94-
return;
9593
}

0 commit comments

Comments
 (0)