diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-04-19 09:58:43 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-04-20 11:44:54 +0200 |
commit | 460e70e2dc9af3128f69e533daf349635c421b0a (patch) | |
tree | 262b433bc1d0735a1237c347698a44bc571c308f /arch/arm64/kernel/machine_kexec.c | |
parent | arm64: kernel: Fix kernel warning when nokaslr is passed to commandline (diff) | |
download | linux-460e70e2dc9af3128f69e533daf349635c421b0a.tar.xz linux-460e70e2dc9af3128f69e533daf349635c421b0a.zip |
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: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/73859c9e-dea0-4764-bf01-7ae694fa2e37@kili.mountain
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/machine_kexec.c')
0 files changed, 0 insertions, 0 deletions