Commit 4c3cbf75 authored by Glauber de Oliveira Costa's avatar Glauber de Oliveira Costa Committed by Andi Kleen

[PATCH] x86-64: Use constant instead of raw number in x86_64 ioperm.c

This is a tiny cleanup to increase readability
Signed-off-by: default avatarGlauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent c49c5330
...@@ -114,6 +114,6 @@ asmlinkage long sys_iopl(unsigned int level, struct pt_regs *regs) ...@@ -114,6 +114,6 @@ asmlinkage long sys_iopl(unsigned int level, struct pt_regs *regs)
if (!capable(CAP_SYS_RAWIO)) if (!capable(CAP_SYS_RAWIO))
return -EPERM; return -EPERM;
} }
regs->eflags = (regs->eflags &~ 0x3000UL) | (level << 12); regs->eflags = (regs->eflags &~ X86_EFLAGS_IOPL) | (level << 12);
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment