Skip to content
Commit 460e70e2 authored by Dan Carpenter's avatar Dan Carpenter Committed by Will Deacon
Browse files

arm64: delete dead code in this_cpu_set_vectors()



The "slot" variable is an enum, and in this context it is an unsigned
int.  So the type means it can never be negative and also we never pass
invalid data to this function.  If something did pass invalid data then
this check would be insufficient protection.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/73859c9e-dea0-4764-bf01-7ae694fa2e37@kili.mountain


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent a2a83eb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment