commit | 4f066173fe8deb8874f41917e5d26ea2e0c46e3b | [log] [tgz] |
---|---|---|
author | Julia Lawall <julia@diku.dk> | Sat Oct 17 08:32:56 2009 +0200 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Mon Oct 19 16:12:35 2009 +0100 |
tree | 95bffc1d1120c0fb65b932416f6c95ac319c3589 | |
parent | 8d567b6b441bfcc20e8cbebc0dc376b2e280cd88 [diff] |
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/): // <smpl> @match exists@ expression x, E; identifier fld; @@ * x->fld ... when != \(x = E\|&x\) * x == NULL // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>