[PATCH] Use constant instead of raw number in x86_64 ioperm.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a tiny cleanup to increase readability

Signed-off-by: Glauber de Oliveira Costa <[email protected]>

-- 
Glauber de Oliveira Costa
Red Hat Inc.
"Free as in Freedom"
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;
 }

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux