diff options
author | Julia Lawall <julia@diku.dk> | 2010-08-28 19:41:03 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-08-30 11:19:28 +0400 |
commit | 9fbaf49c7f717740002d49eee1bbd03d89d8766a (patch) | |
tree | 6371af62737f5889ee8f1a88ab6c83df8eec03a3 /arch/x86/mm/kmemcheck | |
parent | 660a293ea9be709b893d371fbc0328fcca33c33a (diff) | |
download | linux-9fbaf49c7f717740002d49eee1bbd03d89d8766a.tar.xz |
x86, kmemcheck: Remove double test
The opcodes 0x2e and 0x3e are tested for in the first Group 2
line as well.
The sematic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@expression@
expression E;
@@
(
* E
|| ... || E
|
* E
&& ... && E
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Vegard Nossum <vegardno@ifi.uio.no>
LKML-Reference: <1283010066-20935-5-git-send-email-julia@diku.dk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/kmemcheck')
-rw-r--r-- | arch/x86/mm/kmemcheck/opcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/kmemcheck/opcode.c b/arch/x86/mm/kmemcheck/opcode.c index 63c19e27aa6f..324aa3f07237 100644 --- a/arch/x86/mm/kmemcheck/opcode.c +++ b/arch/x86/mm/kmemcheck/opcode.c @@ -9,7 +9,7 @@ static bool opcode_is_prefix(uint8_t b) b == 0xf0 || b == 0xf2 || b == 0xf3 /* Group 2 */ || b == 0x2e || b == 0x36 || b == 0x3e || b == 0x26 - || b == 0x64 || b == 0x65 || b == 0x2e || b == 0x3e + || b == 0x64 || b == 0x65 /* Group 3 */ || b == 0x66 /* Group 4 */ |