mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Use constant instead of raw number in x86_64 ioperm.c
@ 2007-01-04 16:44 Glauber de Oliveira Costa
  0 siblings, 0 replies; only message in thread
From: Glauber de Oliveira Costa @ 2007-01-04 16:44 UTC (permalink / raw)
  To: linux-kernel, akpm

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

This is a tiny cleanup to increase readability

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>

-- 
Glauber de Oliveira Costa
Red Hat Inc.
"Free as in Freedom"

[-- Attachment #2: constant.patch --]
[-- Type: text/plain, Size: 535 bytes --]

diff -Nrup linux-2.6.19.1/arch/x86_64/kernel/ioport.c linux-2.6.19.1-devel/arch/x86_64/kernel/ioport.c
--- linux-2.6.19.1/arch/x86_64/kernel/ioport.c	2006-12-11 17:32:53.000000000 -0200
+++ linux-2.6.19.1-devel/arch/x86_64/kernel/ioport.c	2007-01-04 07:44:46.000000000 -0200
@@ -114,6 +114,6 @@ asmlinkage long sys_iopl(unsigned int le
 		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;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-04 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04 16:44 [PATCH] Use constant instead of raw number in x86_64 ioperm.c Glauber de Oliveira Costa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome