Commit 22ff7509 authored by Clément Léger's avatar Clément Léger Committed by Anup Patel
Browse files

lib: sbi: sse: simplify 32bits overflow check



Rather than checking 32bits overflow with some absolute value, check the
value to be different from the cast itself.

Signed-off-by: default avatarClément Léger <cleger@rivosinc.com>
Reported-by: default avatarSamuel Holland <samuel.holland@sifive.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 7aa80ea4
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