diff options
author | Julia Lawall <julia@diku.dk> | 2011-01-24 20:55:22 +0100 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-01-24 17:03:43 -0800 |
commit | 28693ec01d0229b9e2a2ebe38ef8faa5e151b440 (patch) | |
tree | aba42561a1864c31615a476a3e993d08606a5fb7 /arch/arm/mach-omap2/pm34xx.c | |
parent | 1bae4ce27c9c90344f23c65ea6966c50ffeae2f5 (diff) | |
download | lwn-28693ec01d0229b9e2a2ebe38ef8faa5e151b440.tar.gz lwn-28693ec01d0229b9e2a2ebe38ef8faa5e151b440.zip |
OMAP: PM: SmartReflex: Add missing IS_ERR test
Function _sr_lookup, defined in the same file, returns ERR_PTR not NULL in
an error case.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@r@
identifier f;
@@
f(...) { ... return ERR_PTR(...); }
@@
identifier r.f, fld;
expression x;
statement S1,S2;
@@
x = f(...)
... when != IS_ERR(x)
(
if (IS_ERR(x) ||...) S1 else S2
|
*x->fld
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm34xx.c')
0 files changed, 0 insertions, 0 deletions