arm64/signal: Don't redundantly verify FPSIMD magic
authorMark Brown <broonie@kernel.org>
Tue, 31 Jan 2023 22:20:39 +0000 (22:20 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 1 Feb 2023 17:56:47 +0000 (17:56 +0000)
commit92f14518cc43dcaebfb281dfff2fe14b87633cf4
tree786e031052bc8b105a582578efbfd6ac5bfe8ad2
parentea776e4932302b965a2800e7905d9fa48c0d9e85
arm64/signal: Don't redundantly verify FPSIMD magic

We validate that the magic in the struct fpsimd_context is correct in
restore_fpsimd_context() but this is redundant since parse_user_sigframe()
uses this magic to decide to call the function in the first place. Remove
the extra validation.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221212-arm64-signal-cleanup-v3-1-4545c94b20ff@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/signal.c