Skip to content

Commit

Permalink
Remove unintended return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Jul 18, 2024
1 parent ffefe18 commit 24f5c80
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions clint.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ void clint_read(hart_t *vm,
if (!clint_reg_read(clint, addr, value))
vm_set_exception(vm, RV_EXC_LOAD_FAULT, vm->exc_val);
*value = (*value) >> (RV_MEM_SW - width);
return;
}

void clint_write(hart_t *vm,
Expand All @@ -91,5 +90,4 @@ void clint_write(hart_t *vm,
{
if (!clint_reg_write(clint, addr, value >> (RV_MEM_SW - width)))
vm_set_exception(vm, RV_EXC_STORE_FAULT, vm->exc_val);
return;
}

0 comments on commit 24f5c80

Please sign in to comment.