Skip to content
Commit 7dd9eb6b authored by Hardevsinh Palaniya's avatar Hardevsinh Palaniya Committed by Vineet Gupta
Browse files

ARC: bpf: Correct conditional check in 'check_jmp_32'



The original code checks 'if (ARC_CC_AL)', which is always true since
ARC_CC_AL is a constant. This makes the check redundant and likely
obscures the intention of verifying whether the jump is conditional.

Updates the code to check cond == ARC_CC_AL instead, reflecting the intent
to differentiate conditional from unconditional jumps.

Suggested-by: default avatarVadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: default avatarVadim Fedorenko <vadim.fedorenko@linux.dev>
Acked-by: default avatarShahab Vahedi <list+bpf@vahedi.org>
Signed-off-by: default avatarHardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
Signed-off-by: default avatarVineet Gupta <vgupta@kernel.org>
parent 4d93ffe6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment