From: Julia Lawall Date: Mon, 24 Jan 2011 19:55:22 +0000 (+0100) Subject: OMAP: PM: SmartReflex: Add missing IS_ERR test X-Git-Tag: v2.6.38-rc4~4^2~6^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28693ec01d0229b9e2a2ebe38ef8faa5e151b440;p=pandora-kernel.git 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/) // @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 ) // Signed-off-by: Julia Lawall Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed