]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kaslr: Drop redundant check in store_slot_info()
authorArvind Sankar <nivedita@alum.mit.edu>
Tue, 28 Jul 2020 22:57:16 +0000 (18:57 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 31 Jul 2020 09:08:17 +0000 (11:08 +0200)
commit2867bce78bf887cac9b595d9ec9a7698b2ef56c4
tree3faa87c4a87a36f7fc23303717b775bec735507d
parent778985577752d485cf9d558b91cf21e59582330d
x86/kaslr: Drop redundant check in store_slot_info()

Drop unnecessary check that number of slots is not zero in
store_slot_info, it's guaranteed to be at least 1 by the calculation.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200728225722.67457-16-nivedita@alum.mit.edu
arch/x86/boot/compressed/kaslr.c