x86, kmemcheck: Remove double test
authorJulia Lawall <julia@diku.dk>
Sat, 28 Aug 2010 15:41:03 +0000 (17:41 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 30 Aug 2010 07:19:28 +0000 (09:19 +0200)
commit9fbaf49c7f717740002d49eee1bbd03d89d8766a
tree6371af62737f5889ee8f1a88ab6c83df8eec03a3
parent660a293ea9be709b893d371fbc0328fcca33c33a
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>
arch/x86/mm/kmemcheck/opcode.c