]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fpu: Cleanup variable shadowing
authorThomas Gleixner <tglx@linutronix.de>
Mon, 2 May 2022 07:20:42 +0000 (09:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 2 May 2022 07:28:31 +0000 (09:28 +0200)
commit99e31c44c831c46556cd3bd9fe4dbe1712eb5b26
tree5fee62012539f37ea0f3ba92ec145f080b50de12
parenta787e72d6ac58c36c1183bf3f5582ebcf55c22b6
x86/fpu: Cleanup variable shadowing

Addresses: warning: Local variable 'mask' shadows outer variable

Remove extra variable declaration and switch the bit mask assignment to use
BIT_ULL() while at it.

Fixes: e422845d2c18 ("x86/fpu: Deduplicate copy_uabi_from_user/kernel_to_xstate()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/lkml/202204262032.jFYKit5j-lkp@intel.com
arch/x86/kernel/fpu/xstate.c