Skip to content

Commit e86f510

Browse files
committed
Remove redundant parentheses
1 parent 5baf7ee commit e86f510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aclint.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void aclint_mtimer_read(hart_t *hart,
9090
if (!aclint_mtimer_reg_read(mtimer, addr, value))
9191
vm_set_exception(hart, RV_EXC_LOAD_FAULT, hart->exc_val);
9292

93-
*value >>= (RV_MEM_SW - width);
93+
*value >>= RV_MEM_SW - width;
9494
}
9595

9696
void aclint_mtimer_write(hart_t *hart,
@@ -204,7 +204,7 @@ void aclint_sswi_read(hart_t *hart,
204204
if (!aclint_sswi_reg_read(sswi, addr, value))
205205
vm_set_exception(hart, RV_EXC_LOAD_FAULT, hart->exc_val);
206206

207-
*value >>= (RV_MEM_SW - width);
207+
*value >>= RV_MEM_SW - width;
208208
}
209209

210210
void aclint_sswi_write(hart_t *hart,

0 commit comments

Comments
 (0)