diff options
author | Dan Carpenter <[email protected]> | 2023-04-19 10:58:43 +0300 |
---|---|---|
committer | Will Deacon <[email protected]> | 2023-04-20 10:44:54 +0100 |
commit | 460e70e2dc9af3128f69e533daf349635c421b0a (patch) | |
tree | 262b433bc1d0735a1237c347698a44bc571c308f /lib/memory-notifier-error-inject.c | |
parent | a2a83eb40fbdeee3ed9c6fcc7bb015a2dd1a3e93 (diff) |
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 <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions