Skip to content

Commit

Permalink
[PATCH] x86-64: Use constant instead of raw number in x86_64 ioperm.c
Browse files Browse the repository at this point in the history
This is a tiny cleanup to increase readability

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
  • Loading branch information
Glauber de Oliveira Costa authored and Andi Kleen committed Feb 13, 2007
1 parent c49c533 commit 4c3cbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/ioport.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ asmlinkage long sys_iopl(unsigned int level, struct pt_regs *regs)
if (!capable(CAP_SYS_RAWIO))
return -EPERM;
}
regs->eflags = (regs->eflags &~ 0x3000UL) | (level << 12);
regs->eflags = (regs->eflags &~ X86_EFLAGS_IOPL) | (level << 12);
return 0;
}

0 comments on commit 4c3cbf7

Please sign in to comment.