summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm34xx.c
diff options
context:
space:
mode:
authorJulia Lawall2011-01-24 20:55:22 +0100
committerKevin Hilman2011-01-25 02:03:43 +0100
commit28693ec01d0229b9e2a2ebe38ef8faa5e151b440 (patch)
treeaba42561a1864c31615a476a3e993d08606a5fb7 /arch/arm/mach-omap2/pm34xx.c
parentLinux 2.6.38-rc2 (diff)
downloadkernel-qcow2-linux-28693ec01d0229b9e2a2ebe38ef8faa5e151b440.tar.gz
kernel-qcow2-linux-28693ec01d0229b9e2a2ebe38ef8faa5e151b440.tar.xz
kernel-qcow2-linux-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