From: Julia Lawall Date: Sat, 6 Feb 2010 08:43:03 +0000 (+0100) Subject: KVM: VMX: Remove redundant test in vmx_set_efer() X-Git-Tag: v2.6.34-rc1~193^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c45b4fd416f5497b6b38dd70acc0e5b01399e5c9;p=pandora-kernel.git KVM: VMX: Remove redundant test in vmx_set_efer() msr was tested above, so the second test is not needed. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ expression *x; expression e; identifier l; @@ if (x == NULL || ...) { ... when forall return ...; } ... when != goto l; when != x = e when != &x *x == NULL // Signed-off-by: Julia Lawall Signed-off-by: Avi Kivity --- Reading git-diff-tree failed