diff options
author | Julia Lawall <julia@diku.dk> | 2009-10-17 08:42:49 +0200 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-10-28 18:25:57 +0000 |
commit | 60e5c1b5ecd99e06d3133a2a20d58d3c2b9968ac (patch) | |
tree | 84a2faad185d03646999895ed4d074c7ada03fd7 /Makefile | |
parent | d3bf3956c75b38def079fb6db40b5cf3f1466a93 (diff) |
ARM: S3C24XX: arch/arm/plat-s3c24xx: Move dereference after NULL test
If the NULL test on buf is needed, then the dereference 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: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions