Skip to content

Commit

Permalink
Remove redundant parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Mes0903 committed Dec 15, 2024
1 parent 5baf7ee commit e86f510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aclint.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void aclint_mtimer_read(hart_t *hart,
if (!aclint_mtimer_reg_read(mtimer, addr, value))
vm_set_exception(hart, RV_EXC_LOAD_FAULT, hart->exc_val);

*value >>= (RV_MEM_SW - width);
*value >>= RV_MEM_SW - width;
}

void aclint_mtimer_write(hart_t *hart,
Expand Down Expand Up @@ -204,7 +204,7 @@ void aclint_sswi_read(hart_t *hart,
if (!aclint_sswi_reg_read(sswi, addr, value))
vm_set_exception(hart, RV_EXC_LOAD_FAULT, hart->exc_val);

*value >>= (RV_MEM_SW - width);
*value >>= RV_MEM_SW - width;
}

void aclint_sswi_write(hart_t *hart,
Expand Down

0 comments on commit e86f510

Please sign in to comment.