Commit 0374ccf3 authored by gagachang's avatar gagachang Committed by Anup Patel
Browse files

lib: sbi_hart: Shorten the code to set MPV bit



MPV bit is set when the value of next_virt boolean variable equals
true. Since the value of next_virt is either 0 or 1, we can set
MPV bit without if-else logic.

Signed-off-by: default avatarChe-Chia Chang <alvinga@andestech.com>
Reviewed-by: default avatarAndrew Jones <ajones@ventanamicro.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent caa5eeac
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment