Trim some extraneous parentheses.

Reported by:	kib (do_trap_user)
Sponsored by:	DARPA
This commit is contained in:
John Baldwin 2020-07-27 16:37:18 +00:00
parent 7d351d60fa
commit 9886554a02
2 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ riscv_cpu_intr(struct trapframe *frame)
KASSERT(frame->tf_scause & EXCP_INTR,
("riscv_cpu_intr: wrong frame passed"));
active_irq = (frame->tf_scause & EXCP_MASK);
active_irq = frame->tf_scause & EXCP_MASK;
switch (active_irq) {
case IRQ_SOFTWARE_USER:

View File

@ -256,7 +256,7 @@ do_trap_supervisor(struct trapframe *frame)
KASSERT((csr_read(sstatus) & (SSTATUS_SPP | SSTATUS_SIE)) ==
SSTATUS_SPP, ("Came from S mode with interrupts enabled"));
exception = (frame->tf_scause & EXCP_MASK);
exception = frame->tf_scause & EXCP_MASK;
if (frame->tf_scause & EXCP_INTR) {
/* Interrupt */
riscv_cpu_intr(frame);
@ -318,7 +318,7 @@ do_trap_user(struct trapframe *frame)
KASSERT((csr_read(sstatus) & (SSTATUS_SPP | SSTATUS_SIE)) == 0,
("Came from U mode with interrupts enabled"));
exception = (frame->tf_scause & EXCP_MASK);
exception = frame->tf_scause & EXCP_MASK;
if (frame->tf_scause & EXCP_INTR) {
/* Interrupt */
riscv_cpu_intr(frame);