Files
linux/drivers
Julia Lawall d662fc82dc drivers/regulator: use PTR_ERR to get error code
IS_ERR returns only 1 or 0.  The callsite of setup_regulators expects a
negative integer in an error case.  Thus, PTR_ERR has to be used to extract
it.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression E,E1;
@@

*E = IS_ERR(...)
 ... when != E = E1
*return E;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
2009-12-17 10:27:27 +00:00
..
…
…
…
…
2009-12-15 08:53:34 -08:00
…
2009-12-15 08:53:36 -08:00
2009-12-15 08:53:25 -08:00
…
…
2009-12-15 09:33:36 -08:00
2009-12-16 10:23:43 -08:00
…
…
…
…
…
…
2009-12-15 08:53:25 -08:00
…
…
2009-12-15 08:53:25 -08:00
…
…
…
…