From 24f5c80a7593a1039a1211bd2736c567b8d465b0 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Thu, 18 Jul 2024 13:53:41 +0800 Subject: [PATCH] Remove unintended return statements --- clint.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/clint.c b/clint.c index 874f16e..f5560f6 100644 --- a/clint.c +++ b/clint.c @@ -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, @@ -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; }