From: Julia Lawall Date: Sat, 17 Oct 2009 06:32:56 +0000 (+0200) Subject: ASoC: Move dereference after NULL test X-Git-Tag: v2.6.33-rc3~4^2~90 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f066173fe8deb8874f41917e5d26ea2e0c46e3b;p=pandora-kernel.git ASoC: Move dereference after NULL test If the NULL test on jack is needed, then the derefernce should be after the NULL test. A simplified version of the semantic match that detects this problem is as follows (http://coccinelle.lip6.fr/): // @match exists@ expression x, E; identifier fld; @@ * x->fld ... when != \(x = E\|&x\) * x == NULL // Signed-off-by: Julia Lawall Signed-off-by: Mark Brown --- Reading git-diff-tree failed